projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641f404
)
Fix compilation error on BeOS.
author
Bruno Haible
<bruno@clisp.org>
Fri, 23 Mar 2007 02:12:53 +0000
(
02:12
+0000)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 23 Mar 2007 02:12:53 +0000
(
02:12
+0000)
ChangeLog
patch
|
blob
|
history
lib/poll.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
92ebab0
..
727b724
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,5
+1,9
@@
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.
* tests/test-sys_socket.c (a): Test only if shutdown() exists.
(main): Update.
diff --git
a/lib/poll.c
b/lib/poll.c
index
2ec7be0
..
ed81dba
100644
(file)
--- a/
lib/poll.c
+++ b/
lib/poll.c
@@
-47,6
+47,11
@@
#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;