added configure check for unistd.h.
2007-03-04 Ralf Habacker <ralf.habacker@freenet.de>
+ * configure.in,test/test-sleep-forever.c,test/test-names.c:
+ added configure check for unistd.h.
+
+2007-03-04 Ralf Habacker <ralf.habacker@freenet.de>
+
* test/Makefile.am: fixed test data copy problem in
out of source build, when sources came from svn or cvs.
AC_CHECK_HEADERS(errno.h)
+AC_CHECK_HEADERS(unistd.h)
+
# checking for a posix version of getpwnam_r
# if we are cross compiling and can not run the test
# assume getpwnam_r is the posix version
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <dbus/dbus.h>
#include <dbus/dbus-connection-internal.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#define REMOVE_CONNECTION 0
#define ADD_CONNECTION 1
/* This is a process that just sleeps infinitely. */
+#include <config.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
int
main (int argc, char **argv)