diff options
author | foobar <sniper@php.net> | 2002-04-04 00:24:34 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-04-04 00:24:34 +0000 |
commit | 97ba30ba5cc892045c0458d52f9b19e49b056720 (patch) | |
tree | 93a838b4cc3ad3dbc88f0d414ed61331f3f0e7dc /ext/standard/dl.c | |
parent | 7201d8b54e8ba72864e3836b228f9a5cfafe388b (diff) | |
download | php-git-97ba30ba5cc892045c0458d52f9b19e49b056720.tar.gz |
- OS X support for dynamically loaded extensions. (patch by Marko)
# NEWS entry coming up..
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r-- | ext/standard/dl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c index fae9ef4fbc..6152f56deb 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -30,7 +30,7 @@ #include "build-defs.h" #endif -#ifdef HAVE_LIBDL +#if defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H #include <stdlib.h> #include <stdio.h> @@ -45,10 +45,10 @@ #define GET_DL_ERROR() php_win_err() #else #include <sys/param.h> -#define GET_DL_ERROR() dlerror() +#define GET_DL_ERROR() DL_ERROR() #endif -#endif +#endif /* defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H */ /* {{{ proto int dl(string extension_filename) @@ -83,7 +83,7 @@ PHP_FUNCTION(dl) /* }}} */ -#ifdef HAVE_LIBDL +#if defined(HAVE_LIBDL) || HAVE_MACH_O_DYLD_H #ifdef ZTS #define USING_ZTS 1 |