summaryrefslogtreecommitdiff
path: root/libusb/core.c
diff options
context:
space:
mode:
authorNathan Hjelm <hjelmn@mac.com>2009-02-16 21:39:29 -0300
committerDaniel Drake <dsd@gentoo.org>2009-02-16 21:40:45 -0300
commitb49f6bf5c910d0fd694ecf165d7927673707bff9 (patch)
treead2a648eeef9ce04567f5717f3d9831f3ccdb0e9 /libusb/core.c
parentd859158581e9a3250f36cdeeb8ea67cda04053bd (diff)
downloadlibusb-b49f6bf5c910d0fd694ecf165d7927673707bff9.tar.gz
Darwin backend
Diffstat (limited to 'libusb/core.c')
-rw-r--r--libusb/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 5970aee..b188a38 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -32,8 +32,10 @@
#include "libusb.h"
#include "libusbi.h"
-#ifdef OS_LINUX
+#if defined(OS_LINUX)
const struct usbi_os_backend * const usbi_backend = &linux_usbfs_backend;
+#elif defined(OS_DARWIN)
+const struct usbi_os_backend * const usbi_backend = &darwin_backend;
#else
#error "Unsupported OS"
#endif