aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/poll.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/libssh/poll.h b/include/libssh/poll.h
index 54a1348b..ab00139f 100644
--- a/include/libssh/poll.h
+++ b/include/libssh/poll.h
@@ -40,7 +40,7 @@ typedef struct ssh_pollfd_struct {
/* poll.c */
#ifndef POLLIN
-# define POLLIN 0x001 /* There is data to read. */
+#define POLLIN 0x001 /* There is data to read. */
#endif
#ifndef POLLPRI
#define POLLPRI 0x002 /* There is urgent data to read. */
@@ -59,6 +59,20 @@ typedef struct ssh_pollfd_struct {
#define POLLNVAL 0x020 /* Invalid polling request. */
#endif
+#ifndef POLLRDNORM
+#define POLLRDNORM 0x040 /* mapped to read fds_set */
+#endif
+#ifndef POLLRDBAND
+#define POLLRDBAND 0x080 /* mapped to exception fds_set */
+#endif
+#ifndef POLLWRNORM
+#define POLLWRNORM 0x100 /* mapped to write fds_set */
+#endif
+#ifndef POLLWRBAND
+#define POLLWRBAND 0x200 /* mapped to write fds_set */
+#endif
+
+
typedef unsigned long int nfds_t;
#endif /* HAVE_POLL */