From 92892abf0475e067732465fe018ebead6485dd62 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 22 Sep 2012 06:21:00 +0200 Subject: [PATCH] fixed OSX build --- configure.ac | 2 +- src/mysqlConn.h | 2 ++ src/overall.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 966314a..17de99d 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,7 @@ AC_ARG_ENABLE([debug], CFLAGS="$CFLAGS -D_GNU_SOURCE" # Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h pthread.h sys/epoll.h sys/kevent.h openssl/ssl.h openssl/err.h openssl/rand.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]) # Checks for typedefs, structures, and compiler characteristics. diff --git a/src/mysqlConn.h b/src/mysqlConn.h index 0cd3830..e0ebfc7 100644 --- a/src/mysqlConn.h +++ b/src/mysqlConn.h @@ -19,7 +19,9 @@ #include "main.h" #include +#ifdef HAVE_MYSQL_ERRMSG_H #include +#endif #define MYSQLMAXLEN 1024 diff --git a/src/overall.h b/src/overall.h index cee5795..64ee2ca 100644 --- a/src/overall.h +++ b/src/overall.h @@ -31,7 +31,9 @@ #include #include #else +#ifdef HAVE_FEATURES_H #include +#endif #include #include #include -- 2.20.1