summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/name-test/test-names.c4
-rw-r--r--test/test-sleep-forever.c4
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)