]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix compile issues in hostinfoPosix on iOS
authorVMware, Inc <>
Tue, 13 Mar 2012 20:13:14 +0000 (13:13 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 14 Mar 2012 16:43:32 +0000 (09:43 -0700)
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/misc/hostinfoPosix.c

index 79125c1c5e65e099141757e254663aecd6dd9a91..4e77a6846530c84feef34204ba9e481bc5b874d2 100644 (file)
 #if defined(__FreeBSD__) || defined(__APPLE__)
 # include <sys/sysctl.h>
 #endif
+#if !defined(__APPLE__)
+#define TARGET_OS_IPHONE 0
+#endif
 #if defined(__APPLE__)
+#include <assert.h>
+#include <TargetConditionals.h>
+#if !TARGET_OS_IPHONE
+#include <CoreServices/CoreServices.h>
+#endif
 #include <mach-o/dyld.h>
 #include <mach/mach_host.h>
 #include <mach/mach_init.h>