* configure.in,test/test-sleep-forever.c,test/test-names.c:

added configure check for unistd.h.
This commit is contained in:
Ralf Habacker 2007-03-04 19:00:40 +00:00
parent 4d56811851
commit 7f3af4748f
4 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -568,6 +568,8 @@ AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
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

View file

@ -1,9 +1,11 @@
#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

View file

@ -1,6 +1,10 @@
/* 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)