]> granicus.if.org Git - php/commitdiff
RTLD_NOW => RTLD_LAZY|RTLD_GLOBAL
authorSam Ruby <rubys@php.net>
Sat, 25 Mar 2000 15:40:08 +0000 (15:40 +0000)
committerSam Ruby <rubys@php.net>
Sat, 25 Mar 2000 15:40:08 +0000 (15:40 +0000)
Zend/zend.h

index 95acfa1f7dfd2d91ac3e4305b6f745913ee7f99e..64f2c57870b92a4c64d35c2a38b70b70e0a1ff53 100644 (file)
 #endif
 
 #if defined(HAVE_LIBDL)
-# define DL_LOAD(libname)                      dlopen(libname, RTLD_NOW)
+
+# ifndef RTLD_LAZY
+#  define RTLD_LAZY 1    /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
+# endif
+
+# ifndef RTLD_GLOBAL
+#  define RTLD_GLOBAL 0
+# endif
+
+# define DL_LOAD(libname)                      dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
 # define DL_UNLOAD                                     dlclose
 # define DL_FETCH_SYMBOL                       dlsym
 # define DL_HANDLE                                     void *