From: Sam Ruby Date: Sat, 25 Mar 2000 15:40:08 +0000 (+0000) Subject: RTLD_NOW => RTLD_LAZY|RTLD_GLOBAL X-Git-Tag: PHP-4.0-RC1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e4e9b34e26ed6cc7c5bca642f8cd809168a2f9d;p=php RTLD_NOW => RTLD_LAZY|RTLD_GLOBAL --- diff --git a/Zend/zend.h b/Zend/zend.h index 95acfa1f7d..64f2c57870 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -58,7 +58,16 @@ #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 *