diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-04 19:00:40 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-04 19:00:40 +0000 |
commit | 7f3af4748f8deff75fce6dd50d0005aadfd4985c (patch) | |
tree | 7972f4044c6fe762347847722f46c07b97af9c9e /test | |
parent | 4d568118513d1475fa2e780e0c0ed8d48cace9f6 (diff) |
* configure.in,test/test-sleep-forever.c,test/test-names.c:
added configure check for unistd.h.
Diffstat (limited to 'test')
-rw-r--r-- | test/name-test/test-names.c | 4 | ||||
-rw-r--r-- | test/test-sleep-forever.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/name-test/test-names.c b/test/name-test/test-names.c index d25ff6a7..506ed266 100644 --- a/test/name-test/test-names.c +++ b/test/name-test/test-names.c @@ -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 diff --git a/test/test-sleep-forever.c b/test/test-sleep-forever.c index 7d9541e8..ff0d8e26 100644 --- a/test/test-sleep-forever.c +++ b/test/test-sleep-forever.c @@ -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) |