mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-28 18:55:40 +00:00
scst_user, scst_event: Convert to __poll_t
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7791 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -297,6 +297,27 @@ enum {
|
||||
};
|
||||
#endif
|
||||
|
||||
/* <linux/eventpoll.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
|
||||
typedef unsigned int __bitwise __poll_t;
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0)
|
||||
#define EPOLLIN (__force __poll_t)0x00000001
|
||||
#define EPOLLPRI (__force __poll_t)0x00000002
|
||||
#define EPOLLOUT (__force __poll_t)0x00000004
|
||||
#define EPOLLERR (__force __poll_t)0x00000008
|
||||
#define EPOLLHUP (__force __poll_t)0x00000010
|
||||
#define EPOLLNVAL (__force __poll_t)0x00000020
|
||||
#define EPOLLRDNORM (__force __poll_t)0x00000040
|
||||
#define EPOLLRDBAND (__force __poll_t)0x00000080
|
||||
#define EPOLLWRNORM (__force __poll_t)0x00000100
|
||||
#define EPOLLWRBAND (__force __poll_t)0x00000200
|
||||
#define EPOLLMSG (__force __poll_t)0x00000400
|
||||
#define EPOLLRDHUP (__force __poll_t)0x00002000
|
||||
#endif
|
||||
|
||||
/* <linux/fs.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) && \
|
||||
|
||||
Reference in New Issue
Block a user