summaryrefslogtreecommitdiff
path: root/libusb/os/poll_posix.h
blob: 48c490441381c0e6b86ed7886b4616a6f427c5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef LIBUSB_POLL_POSIX_H
#define LIBUSB_POLL_POSIX_H

#include <poll.h>
#include <unistd.h>

#ifdef HAVE_NFDS_T
typedef nfds_t usbi_nfds_t;
#else
typedef unsigned int usbi_nfds_t;
#endif

#define usbi_write	write
#define usbi_read	read
#define usbi_close	close
#define usbi_poll	poll

int usbi_pipe(int pipefd[2]);

#endif /* LIBUSB_POLL_POSIX_H */