Commit 2252871b authored by mmu_man's avatar mmu_man

Make sure we don't try to emulate poll() when it's there if --disable-ffserver... 10l

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7991 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent de38da6c
......@@ -103,6 +103,7 @@ done:
}
#endif /* !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) */
#ifdef CONFIG_FFSERVER
#ifndef HAVE_SYS_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
......@@ -161,7 +162,6 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
#endif /* HAVE_SYS_POLL_H */
#endif /* CONFIG_FFSERVER */
......@@ -75,6 +75,7 @@ static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1
#define closesocket close
#endif
#ifdef CONFIG_FFSERVER
#ifndef HAVE_SYS_POLL_H
typedef unsigned long nfds_t;
......@@ -101,5 +102,6 @@ struct pollfd {
extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
#endif /* HAVE_SYS_POLL_H */
#endif /* CONFIG_FFSERVER */
#endif /* _OS_SUPPORT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment