summaryrefslogtreecommitdiff
path: root/libusb/os/poll_posix.h
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-03-02 15:57:46 +0000
committerPete Batard <pbatard@gmail.com>2010-03-02 15:57:46 +0000
commit35d428fd029a54207b1cee6d46ab29310385e0fd (patch)
tree5407af1f66b3c2386170b450661e3846aac5cb9d /libusb/os/poll_posix.h
parent4c38f2bef9640a43d45f245adeb1f31dec295e14 (diff)
downloadlibusb-35d428fd029a54207b1cee6d46ab29310385e0fd.tar.gz
renamed unistd_posix.h to poll_posix.h
Diffstat (limited to 'libusb/os/poll_posix.h')
-rw-r--r--libusb/os/poll_posix.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libusb/os/poll_posix.h b/libusb/os/poll_posix.h
new file mode 100644
index 0000000..0e9981d
--- /dev/null
+++ b/libusb/os/poll_posix.h
@@ -0,0 +1,12 @@
+#ifndef __LIBUSB_UNISTD_POSIX_H__
+#define __LIBUSB_UNISTD_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_UNISTD_POSIX_H__ */