]> granicus.if.org Git - php/commitdiff
This was conditionally included if HAVE_MYSQL_REAL_CONNECT was defined.
authorfoobar <sniper@php.net>
Fri, 2 Nov 2001 07:08:48 +0000 (07:08 +0000)
committerfoobar <sniper@php.net>
Fri, 2 Nov 2001 07:08:48 +0000 (07:08 +0000)
ext/mysql/php_mysql.c

index 6ccbbc494f89d18904e69a1a7c9404a697c06f05..9d4bc2ab80998f0a1e427284aad3535d9b967acf 100644 (file)
@@ -55,14 +55,16 @@ static int le_result, le_link, le_plink;
 
 #include "php_ini.h"
 
-# if HAVE_MYSQL_MYSQL_H
-#  include <mysql/mysql.h>
-# else
-#  include <mysql.h>
-# endif
+#if HAVE_MYSQL_MYSQL_H
+# include <mysql/mysql.h>
+#else
+# include <mysql.h>
+#endif
 
-#ifdef HAVE_ERRMSG_H
-#include <errmsg.h>
+#ifdef HAVE_MYSQL_REAL_CONNECT
+# ifdef HAVE_ERRMSG_H
+#  include <errmsg.h>
+# endif
 #endif
 
 #define SAFE_STRING(s) ((s)?(s):"")