aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-04-03 21:22:32 +0200
committerAndreas Schneider <mail@cynapses.org>2010-04-04 17:38:50 +0200
commitfddbf1f94ca57c66d5b2ba0f67d55e13357b967f (patch)
treea9584802463e8759ce041c6faac0e489c8818965 /include/libssh
parent5d5f6cc60ce82d657227a533c1f1142e9694e801 (diff)
downloadlibssh-fddbf1f94ca57c66d5b2ba0f67d55e13357b967f.tar.gz
libssh-fddbf1f94ca57c66d5b2ba0f67d55e13357b967f.tar.xz
libssh-fddbf1f94ca57c66d5b2ba0f67d55e13357b967f.zip
Added a select(2) based poll-emulation if poll(2) is not available.
Diffstat (limited to 'include/libssh')
-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 54a1348..ab00139 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 */