# HG changeset patch # User lucabe # Date 1202907074 0 # Node ID 1135ef6102330114351e1bf781f138782198dab8 # Parent db12cabbe33784f868a4cc61e832f255d98c2d6e Include poll.h instead of sys/poll.h diff -r db12cabbe337 -r 1135ef610233 os_support.c --- a/os_support.c Wed Feb 13 10:58:16 2008 +0000 +++ b/os_support.c Wed Feb 13 12:51:14 2008 +0000 @@ -26,7 +26,7 @@ #include "os_support.h" #ifdef CONFIG_NETWORK -#ifndef HAVE_SYS_POLL_H +#ifndef HAVE_POLL_H #ifdef HAVE_WINSOCK2_H #include #elif defined (HAVE_SYS_SELECT_H) @@ -83,7 +83,7 @@ #endif /* CONFIG_NETWORK */ #ifdef CONFIG_FFSERVER -#ifndef HAVE_SYS_POLL_H +#ifndef HAVE_POLL_H int poll(struct pollfd *fds, nfds_t numfds, int timeout) { fd_set read_set; @@ -150,6 +150,6 @@ return rc; } -#endif /* HAVE_SYS_POLL_H */ +#endif /* HAVE_POLL_H */ #endif /* CONFIG_FFSERVER */ diff -r db12cabbe337 -r 1135ef610233 os_support.h --- a/os_support.h Wed Feb 13 10:58:16 2008 +0000 +++ b/os_support.h Wed Feb 13 12:51:14 2008 +0000 @@ -62,7 +62,7 @@ #endif #ifdef CONFIG_FFSERVER -#ifndef HAVE_SYS_POLL_H +#ifndef HAVE_POLL_H typedef unsigned long nfds_t; struct pollfd { @@ -87,7 +87,7 @@ extern int poll(struct pollfd *fds, nfds_t numfds, int timeout); -#endif /* HAVE_SYS_POLL_H */ +#endif /* HAVE_POLL_H */ #endif /* CONFIG_FFSERVER */ #endif /* FFMPEG_OS_SUPPORT_H */