From 3cf9fa4dc76d9c85f8490b2437562672668d65d5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 29 Jun 2011 16:17:20 +0100 Subject: [PATCH] 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 --- bus/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/main.c b/bus/main.c index 9f1bf11..13a3770 100644 --- a/bus/main.c +++ b/bus/main.c @@ -32,7 +32,9 @@ #ifdef HAVE_SIGNAL_H #include #endif +#ifdef HAVE_UNISTD_H #include +#endif #ifdef HAVE_ERRNO_H #include #endif -- 2.7.4