# HG changeset patch # User Bruno Haible # Date 1174615973 0 # Node ID 6c3093c67379135a49cf8c1845195f9621c54776 # Parent 7304ea5306408566175df17c368fc50b2ddbe9b1 Fix compilation error on BeOS. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-22 Bruno Haible + + * lib/poll.c (MSG_PEEK): New fallback definition. + 2007-03-22 Bruno Haible * modules/sys_socket-tests (configure.ac): Check for shutdown function. diff --git a/lib/poll.c b/lib/poll.c --- 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;