From a5886607d0778dc51a59b15067604641e91ec152 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 14 Feb 2008 15:35:46 +0000 Subject: [PATCH] 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 2b102c87827..7747f114cfb 100644 --- a/tools/widl/client.c +++ b/tools/widl/client.c @@ -23,7 +23,9 @@ #include #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #include #include diff --git a/tools/widl/typelib.c b/tools/widl/typelib.c index 1a5659981f1..100ae89e55b 100644 --- a/tools/widl/typelib.c +++ b/tools/widl/typelib.c @@ -26,7 +26,9 @@ #include #include #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #include #include