fixed path of mysql/errmsg.h (OSX compilation fix)
authorpk910 <philipp@zoelle1.de>
Sat, 22 Sep 2012 05:12:08 +0000 (07:12 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 22 Sep 2012 05:12:08 +0000 (07:12 +0200)
configure.ac
src/mysqlConn.h

index 17de99d6d3d884f542f767547a524ce4de7c6e35..409d0a2b0312327419da2541f8faba7f5a818cd4 100644 (file)
@@ -76,7 +76,7 @@ AC_ARG_ENABLE([debug],
 CFLAGS="$CFLAGS -D_GNU_SOURCE"
 
 # Checks for header files.
-AC_CHECK_HEADERS([stdio.h stdlib.h string.h ctype.h windows.h winsock2.h malloc.h features.h sys/types.h sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h netdb.h sys/wait.h errno.h unistd.h getopt.h stdarg.h sys/time.h time.h signal.h sys/epoll.h sys/event.h ws2tcpip.h mysql.h mysql/errmsg.h])
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h ctype.h windows.h winsock2.h malloc.h features.h sys/types.h sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h netdb.h sys/wait.h errno.h unistd.h getopt.h stdarg.h sys/time.h time.h signal.h sys/epoll.h sys/event.h ws2tcpip.h mysql.h mysql/errmsg.h errmsg.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 
index e0ebfc781dbe2637ad28fc085beb425d01c369ea..660e2cb32c2c74f8c5ef817d9af97f19f71dcc6d 100644 (file)
@@ -21,6 +21,8 @@
 #include <mysql.h>
 #ifdef HAVE_MYSQL_ERRMSG_H
 #include <mysql/errmsg.h>
+#elif defined(HAVE_ERRMSG_H)
+#include <errmsg.h>
 #endif
 
 #define MYSQLMAXLEN 1024