summaryrefslogtreecommitdiffstats
path: root/include/libusb-1.0/os/poll_posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libusb-1.0/os/poll_posix.h')
-rw-r--r--include/libusb-1.0/os/poll_posix.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libusb-1.0/os/poll_posix.h b/include/libusb-1.0/os/poll_posix.h
new file mode 100644
index 0000000..17298a5
--- /dev/null
+++ b/include/libusb-1.0/os/poll_posix.h
@@ -0,0 +1,12 @@
+#ifndef __LIBUSB_POLL_POSIX_H__
+#define __LIBUSB_POLL_POSIX_H__
+
+#include <unistd.h>
+#include <poll.h>
+#define usbi_write write
+#define usbi_read read
+#define usbi_close close
+#define usbi_pipe pipe
+#define usbi_poll poll
+
+#endif /* __LIBUSB_POLL_POSIX_H__ */