summaryrefslogtreecommitdiff
path: root/ext/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql')
-rw-r--r--ext/mysql/php_mysql.c8
-rw-r--r--ext/mysql/php_mysql.h6
2 files changed, 9 insertions, 5 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index cb198be677..aa9bb2757b 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -24,8 +24,12 @@
* ? Safe mode implementation
*/
-#if COMPILE_DL
-#include "dl/phpdl.h"
+#ifdef PIC
+# define COMPILE_DL 1
+#endif
+
+#ifdef COMPILE_DL
+# include "dl/phpdl.h"
#endif
#include "php.h"
diff --git a/ext/mysql/php_mysql.h b/ext/mysql/php_mysql.h
index 80bd0d6793..e998f8e56c 100644
--- a/ext/mysql/php_mysql.h
+++ b/ext/mysql/php_mysql.h
@@ -22,9 +22,9 @@
#ifndef _PHP_MYSQL_H
#define _PHP_MYSQL_H
-#if COMPILE_DL
-#undef HAVE_MYSQL
-#define HAVE_MYSQL 1
+#ifdef COMPILE_DL
+# undef HAVE_MYSQL
+# define HAVE_MYSQL 1
#endif
#if WIN32||WINNT