summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/config.h.stub2
-rw-r--r--ext/standard/dl.c4
-rw-r--r--ext/standard/dl.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/config.h.stub b/ext/standard/config.h.stub
index 6e29dd4810..6021062968 100644
--- a/ext/standard/config.h.stub
+++ b/ext/standard/config.h.stub
@@ -11,7 +11,7 @@
#undef PHP3_BLOWFISH_CRYPT
/* Define if you have libdl (used for dynamic linking) */
-#define HAVE_LIBDL 0
+#undef HAVE_LIBDL
#undef HAVE_GETWD
#undef HAVE_GETCWD
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index f915a9cbea..e113249fd1 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -22,7 +22,7 @@
#include "dl.h"
#include "php_globals.h"
-#if HAVE_LIBDL
+#ifdef HAVE_LIBDL
#include <stdlib.h>
#include <stdio.h>
#ifndef RTLD_LAZY
@@ -78,7 +78,7 @@ void dl(INTERNAL_FUNCTION_PARAMETERS)
/* }}} */
-#if HAVE_LIBDL
+#ifdef HAVE_LIBDL
void php_dl(pval *file,int type,pval *return_value)
{
diff --git a/ext/standard/dl.h b/ext/standard/dl.h
index 58a969b1c2..6bf453d23e 100644
--- a/ext/standard/dl.h
+++ b/ext/standard/dl.h
@@ -38,7 +38,7 @@
void php_dl(pval *file,int type,pval *return_value);
-#if HAVE_LIBDL
+#ifdef HAVE_LIBDL
extern php3_module_entry dl_module_entry;
#define dl_module_ptr &dl_module_entry