summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 09107790f1..a0b5e1ac9a 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -34,6 +34,8 @@
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
+#if HAVE_MYSQL
+
#ifdef PHP_WIN32
#include <winsock.h>
#define signal(a, b) NULL
@@ -2255,6 +2257,8 @@ PHP_FUNCTION(mysql_ping)
}
/* }}} */
+#endif
+
/*
* Local variables:
* tab-width: 4