diff options
author | Nathan Hjelm <hjelmn@me.com> | 2010-05-13 19:38:05 -0300 |
---|---|---|
committer | Daniel Drake <dan@reactivated.net> | 2010-05-13 19:38:05 -0300 |
commit | 371ca4e440894bd1c845971418aa24c9d3919e63 (patch) | |
tree | 11bfd0b81e6974c350f2520f061eb9e56aead3db /libusb/os | |
parent | 7ba92cff94bbba19284749c614c26141d3023f37 (diff) | |
download | libusb-371ca4e440894bd1c845971418aa24c9d3919e63.tar.gz |
Darwin: Define IO_OBJECT_NULL if not already defined
Needed on Mac OSX 10.3
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/darwin_usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libusb/os/darwin_usb.h b/libusb/os/darwin_usb.h index a7b31eb..d220889 100644 --- a/libusb/os/darwin_usb.h +++ b/libusb/os/darwin_usb.h @@ -22,6 +22,7 @@ #include "libusbi.h" +#include <IOKit/IOTypes.h> #include <IOKit/IOCFBundle.h> #include <IOKit/usb/IOUSBLib.h> #include <IOKit/IOCFPlugIn.h> @@ -112,6 +113,10 @@ #endif +#if !defined(IO_OBJECT_NULL) +#define IO_OBJECT_NULL ((io_object_t) 0) +#endif + typedef IOCFPlugInInterface *io_cf_plugin_ref_t; typedef IONotificationPortRef io_notification_port_t; |