add linux extension POLLRDHUP to poll.h
authorRich Felker <dalias@aerifal.cx>
Wed, 26 Dec 2012 21:55:49 +0000 (16:55 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 26 Dec 2012 21:55:49 +0000 (16:55 -0500)
the POLL prefix is in the reserved namespace for poll.h, so no feature
test macro checks are needed.

include/poll.h

index f0e68b2..9a78530 100644 (file)
@@ -18,6 +18,7 @@ extern "C" {
 #define POLLWRNORM 0x100
 #define POLLWRBAND 0x200
 #define POLLMSG    0x400
+#define POLLRDHUP  0x2000
 
 typedef unsigned long nfds_t;