mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
don't enable power notification handling in SVN, work-around compile issue with 4.2 headers (fix for #110)
This commit is contained in:
parent
f8315ac151
commit
56a25c4cef
10
src/daemon.c
10
src/daemon.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user