summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-06-29 16:17:20 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-05 14:39:04 +0100
commit3cf9fa4dc76d9c85f8490b2437562672668d65d5 (patch)
tree45b80a5c63ebe6494a2987466c26979a67d6ba26
parent94e7a1df3e4a677c04ca5140e0c56cb369f5076b (diff)
Conditionalize inclusion of unistd.h
Windows doesn't have it, for instance. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
-rw-r--r--bus/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bus/main.c b/bus/main.c
index 9f1bf11c..13a37700 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -32,7 +32,9 @@
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif