Fix compilation error on BeOS.
authorBruno Haible <bruno@clisp.org>
Fri, 23 Mar 2007 02:12:53 +0000 (02:12 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 23 Mar 2007 02:12:53 +0000 (02:12 +0000)
ChangeLog
lib/poll.c

index 92ebab0818c0c3aacee40f9518ab215478fffee9..727b724580842a802154add8242e0157fbc548e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-22  Bruno Haible  <bruno@clisp.org>
+
+       * lib/poll.c (MSG_PEEK): New fallback definition.
+
 2007-03-22  Bruno Haible  <bruno@clisp.org>
 
        * modules/sys_socket-tests (configure.ac): Check for shutdown function.
index 2ec7be02dc2aaf443a63c68277960c3678d7408d..ed81dbaafb85f4feb82533833c9480251e857fa9 100644 (file)
 #define EOVERFLOW EINVAL
 #endif
 
+/* BeOS does not have MSG_PEEK.  */
+#ifndef MSG_PEEK
+#define MSG_PEEK 0
+#endif
+
 int
 poll (pfd, nfd, timeout)
      struct pollfd *pfd;