Module Name: src Committed By: njoly Date: Mon Nov 16 17:21:26 UTC 2009
Modified Files: src/lib/libukfs: ukfs.c Log Message: Add RTLD_LAZY to dlopen call, to make it work on Linux hosts. ok by pooka. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/lib/libukfs/ukfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libukfs/ukfs.c diff -u src/lib/libukfs/ukfs.c:1.41 src/lib/libukfs/ukfs.c:1.42 --- src/lib/libukfs/ukfs.c:1.41 Thu Oct 15 16:41:08 2009 +++ src/lib/libukfs/ukfs.c Mon Nov 16 17:21:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ukfs.c,v 1.41 2009/10/15 16:41:08 pooka Exp $ */ +/* $NetBSD: ukfs.c,v 1.42 2009/11/16 17:21:26 njoly Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. @@ -896,7 +896,7 @@ struct modinfo **mi; int error; - handle = dlopen(fname, RTLD_GLOBAL); + handle = dlopen(fname, RTLD_LAZY|RTLD_GLOBAL); if (handle == NULL) { const char *dlmsg = dlerror(); if (strstr(dlmsg, "Undefined symbol"))