Skip to content
Browse files

MB-5868: Obsolete Mac #includes break in OS X 10.8

Stop using the ancient/obsolete 'flat' include style;
i.e. instead of #include <Gestalt.h> include
<CoreServices/CoreServices.h>

Change-Id: I8ab5f067e12a4d017d5a003fdd6b31c396a34985
  • Loading branch information...
1 parent f446a87 commit 63a3cd1b316d2d4aa6dd31ce8fc66101b983e0b0 @snej snej committed Jul 11, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −1 configure.ac
  2. +1 −2 src/os/darwin/darwin_sigar.c
View
1 configure.ac
@@ -43,7 +43,6 @@ case $host_os in
SRC_OS="darwin"
AC_DEFINE(DARWIN,[],[running on MacOS X])
AC_DEFINE(SIGAR_TEST_OS_DARWIN, [1], [for the tests])
- SIGAR_INCLUDES="-I /Developer/Headers/FlatCarbon/"
SIGAR_LIBS="-framework IOKit -framework CoreServices"
;;
*netbsd*)
View
3 src/os/darwin/darwin_sigar.c
@@ -50,9 +50,8 @@
#endif
#include <mach-o/dyld.h>
#define __OPENTRANSPORTPROVIDERS__
-#include <Gestalt.h>
-#include <CFString.h>
#include <CoreFoundation/CoreFoundation.h>
+#include <CoreServices/CoreServices.h>
#include <IOKit/IOBSD.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOTypes.h>

0 comments on commit 63a3cd1

Please sign in to comment.
Something went wrong with that request. Please try again.