summaryrefslogtreecommitdiff
path: root/Zend/acconfig.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-10-13 00:17:01 +0000
committerSascha Schumann <sas@php.net>1999-10-13 00:17:01 +0000
commit8cc4fc61116c587b3eca4cd51772d580fee302ed (patch)
treecb7ff8bc32186b07ef4c61c12a57e2c3051d2234 /Zend/acconfig.h
parent0cc1641447597816b35a564e14051646f8d5acd5 (diff)
downloadphp-git-8cc4fc61116c587b3eca4cd51772d580fee302ed.tar.gz
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).
Diffstat (limited to 'Zend/acconfig.h')
-rw-r--r--Zend/acconfig.h15
1 files changed, 5 insertions, 10 deletions
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 <dlfcn.h>
-# 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 <dlfcn.h>
+#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