summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-11-02 07:08:48 +0000
committerfoobar <sniper@php.net>2001-11-02 07:08:48 +0000
commit5a81882c03015e0219fd360804dbfcfeef87518f (patch)
tree26fcabbb0e45287bf34f2db7d5b0cd6a7a818af1 /ext/mysql/php_mysql.c
parent9ba2c90e1647578d78ab8c70dd37ee5c28cdb41e (diff)
downloadphp-git-5a81882c03015e0219fd360804dbfcfeef87518f.tar.gz
This was conditionally included if HAVE_MYSQL_REAL_CONNECT was defined.
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 6ccbbc494f..9d4bc2ab80 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -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):"")