Mercurial > hg > xemacs-beta
comparison src/sysdll.c @ 880:beddd25fe24a
[xemacs-hg @ 2002-06-24 22:00:17 by youngs]
2002-06-17 Jerry James <james@xemacs.org>
* emodules.texi (Loading other Modules): Describe why we do not
use RTLD_GLOBAL.
2002-06-17 Jerry James <james@xemacs.org>
* sysdll.c: Remove RTLD_GLOBAL initialization.
* sysdll.c (dll_open): Do not use RTLD_GLOBAL.
author | youngs |
---|---|
date | Mon, 24 Jun 2002 22:00:25 +0000 |
parents | 42375619fa45 |
children | df61d2b1d4c3 |
comparison
equal
deleted
inserted
replaced
879:f809bc97829a | 880:beddd25fe24a |
---|---|
36 | 36 |
37 #ifndef RTLD_LAZY | 37 #ifndef RTLD_LAZY |
38 # define RTLD_LAZY 1 | 38 # define RTLD_LAZY 1 |
39 #endif /* RTLD_LAZY isn't defined under FreeBSD - ick */ | 39 #endif /* RTLD_LAZY isn't defined under FreeBSD - ick */ |
40 | 40 |
41 #ifndef RTLD_GLOBAL | |
42 # define RTLD_GLOBAL 0 | |
43 #endif | |
44 | |
45 #ifndef RTLD_NOW | 41 #ifndef RTLD_NOW |
46 # define RTLD_NOW 2 | 42 # define RTLD_NOW 2 |
47 #endif | 43 #endif |
48 | 44 |
49 int | 45 int |
53 } | 49 } |
54 | 50 |
55 dll_handle | 51 dll_handle |
56 dll_open (const char *fname) | 52 dll_open (const char *fname) |
57 { | 53 { |
58 return (dll_handle) dlopen (fname, RTLD_NOW | RTLD_GLOBAL); | 54 return (dll_handle) dlopen (fname, RTLD_NOW); |
59 } | 55 } |
60 | 56 |
61 int | 57 int |
62 dll_close (dll_handle h) | 58 dll_close (dll_handle h) |
63 { | 59 { |