don't enable power notification handling in SVN, work-around compile issue with 4.2 headers (fix for #110)

This commit is contained in:
matthias.ringwald 2011-01-06 21:17:32 +00:00
parent f8315ac151
commit 56a25c4cef

View File

@ -73,7 +73,7 @@
#define DAEMON_NO_CONNECTION_TIMEOUT 20000
#define HANDLE_POWER_NOTIFICATIONS
// #define HANDLE_POWER_NOTIFICATIONS
#ifdef HANDLE_POWER_NOTIFICATIONS
@ -82,6 +82,11 @@
// minimal IOKit
#include <Availability.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_2_0
// compile issue fix with 4.2 headers
#undef NSEC_PER_USEC
#undef USEC_PER_SEC
#undef NSEC_PER_SEC
// end of fix
#include <mach/mach.h>
#define IOKIT
#include <device/device_types.h>
@ -131,8 +136,6 @@ IOReturn IOCancelPowerChange ( io_connect_t kernelPort, long notificationID );
io_connect_t root_port;
io_object_t notifier;
#endif
io_connect_t root_port; // a reference to the Root Power Domain IOService
void
@ -194,6 +197,7 @@ MySleepCallBack( void * refCon, io_service_t service, natural_t messageType, voi
}
}
#endif
#endif
static hci_transport_t * transport;