Skip to content

Commit

Permalink
MB-5868: Obsolete Mac #includes break in OS X 10.8
Browse files Browse the repository at this point in the history
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
snej committed Jul 11, 2012
1 parent f446a87 commit 63a3cd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion configure.ac
Expand Up @@ -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*)
Expand Down
3 changes: 1 addition & 2 deletions src/os/darwin/darwin_sigar.c
Expand Up @@ -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>
Expand Down

0 comments on commit 63a3cd1

Please sign in to comment.