summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/os/unistd_posix.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libusb/os/unistd_posix.h b/libusb/os/unistd_posix.h
new file mode 100644
index 0000000..1b3ba84
--- /dev/null
+++ b/libusb/os/unistd_posix.h
@@ -0,0 +1,12 @@
+#ifndef __LIBUSB_UNISTD_POSIX_H__
+#define __LIBUSB_UNISTD_POSIX_H__
+
+#include <unistd.h>
+#include <poll.h>
+#define _libusb_write write
+#define _libusb_read read
+#define _libusb_close close
+#define _libusb_pipe pipe
+#define _libusb_poll poll
+
+#endif /* __LIBUSB_UNISTD_POSIX_H__ */