Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libukfs Add RTLD_LAZY to dlopen call, to make it work on...



details:   https://anonhg.NetBSD.org/src/rev/2ae4e60d68cc
branches:  trunk
changeset: 749076:2ae4e60d68cc
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Nov 16 17:21:26 2009 +0000

description:
Add RTLD_LAZY to dlopen call, to make it work on Linux hosts.

ok by pooka.

diffstat:

 lib/libukfs/ukfs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d1c902a6e312 -r 2ae4e60d68cc lib/libukfs/ukfs.c
--- a/lib/libukfs/ukfs.c        Mon Nov 16 13:32:40 2009 +0000
+++ b/lib/libukfs/ukfs.c        Mon Nov 16 17:21:26 2009 +0000
@@ -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"))



Home | Main Index | Thread Index | Old Index