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 @@
1#ifndef __LIBUSB_POLL_POSIX_H__
2#define __LIBUSB_POLL_POSIX_H__
3
4#include <unistd.h>
5#include <poll.h>
6#define usbi_write write
7#define usbi_read read
8#define usbi_close close
9#define usbi_pipe pipe
10#define usbi_poll poll
11
12#endif /* __LIBUSB_POLL_POSIX_H__ */