From: VMware, Inc <> Date: Tue, 13 Mar 2012 20:13:14 +0000 (-0700) Subject: Fix compile issues in hostinfoPosix on iOS X-Git-Tag: 2012.03.13-651368~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec2a02df370e91f5c1caedb7e8c27398f822f7e;p=thirdparty%2Fopen-vm-tools.git Fix compile issues in hostinfoPosix on iOS Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index 79125c1c5..4e77a6846 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -44,7 +44,15 @@ #if defined(__FreeBSD__) || defined(__APPLE__) # include #endif +#if !defined(__APPLE__) +#define TARGET_OS_IPHONE 0 +#endif #if defined(__APPLE__) +#include +#include +#if !TARGET_OS_IPHONE +#include +#endif #include #include #include