From: Sascha Schumann Date: Wed, 13 Oct 1999 00:17:01 +0000 (+0000) Subject: Disable ZEND_EXTENSIONS_SUPPORT, if RTLD_NOW is not defined. X-Git-Tag: php-4.0b3_RC2~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cc4fc61116c587b3eca4cd51772d580fee302ed;p=php Disable ZEND_EXTENSIONS_SUPPORT, if RTLD_NOW is not defined. Note that this part could be made platform independent by using libltdl (for Solaris, Linux, *BSD, HP-UX, Win16/32, BeOS). --- diff --git a/Zend/acconfig.h b/Zend/acconfig.h index e27c6d3adf..ae8de50c84 100644 --- a/Zend/acconfig.h +++ b/Zend/acconfig.h @@ -60,16 +60,11 @@ /* Define if you have stdiostream.h */ #undef HAVE_STDIOSTREAM_H -#ifdef HAVE_LIBDL -# ifdef HAVE_DLFCN_H -# include -# endif -# if !defined(RTLD_NOW) && defined(DL_NOW) -# define RTLD_NOW DL_NOW -# endif -# if !defined(RTLD_NOW) && defined(DL_LAZY) -# define RTLD_NOW DL_LAZY -# endif +#ifdef HAVE_DLFCN_H +# include +#endif + +#if defined(HAVE_LIBDL) && defined(RTLD_NOW) # define DL_LOAD(libname) dlopen(libname, RTLD_NOW) # define DL_UNLOAD dlclose # define DL_FETCH_SYMBOL dlsym