Author: wyoung
Date: Tue Oct 21 16:37:54 2008
New Revision: 2375
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2375&view=rev
Log:
Configure script now checking for unistd.h, so we can include it where
needed on platforms that have it. Right now, we need it to find
sleep(3) in examples/cpool.cpp on some platforms.
Modified:
trunk/configure.ac
trunk/examples/threads.h
Modified: trunk/configure.ac
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/configure.ac?rev=2375&r1=2374&r2=2375&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Oct 21 16:37:54 2008
@@ -49,6 +49,7 @@
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
AC_CHECK_HEADERS(synch.h)
+ AC_CHECK_HEADERS(unistd.h)
fi
Modified: trunk/examples/threads.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/threads.h?rev=2375&r1=2374&r2=2375&view=diff
==============================================================================
--- trunk/examples/threads.h (original)
+++ trunk/examples/threads.h Tue Oct 21 16:37:54 2008
@@ -43,6 +43,9 @@
static void sleep(int s) { Sleep(s * 1000); }
#else
# include "../config.h"
+# if defined(HAVE_UNISTD_H)
+# include <unistd.h>
+# endif
# if defined(HAVE_PTHREAD)
# define HAVE_THREADS
# define CALLBACK_SPECIFIER
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits