Rob Shearman : widl: Guard the inclusion of unistd.h.
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 05:36:01 CST 2008
Module: wine
Branch: master
Commit: a5886607d0778dc51a59b15067604641e91ec152
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5886607d0778dc51a59b15067604641e91ec152
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 14 15:35:46 2008 +0000
widl: Guard the inclusion of unistd.h.
---
tools/widl/client.c | 4 +++-
tools/widl/typelib.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/widl/client.c b/tools/widl/client.c
index 2b102c8..7747f11 100644
--- a/tools/widl/client.c
+++ b/tools/widl/client.c
@@ -23,7 +23,9 @@
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <string.h>
#include <ctype.h>
diff --git a/tools/widl/typelib.c b/tools/widl/typelib.c
index 1a56599..100ae89 100644
--- a/tools/widl/typelib.c
+++ b/tools/widl/typelib.c
@@ -26,7 +26,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <string.h>
#include <ctype.h>
More information about the wine-cvs
mailing list