diff os_support.h @ 1799:0dc3a767943d libavformat

Make sure we don't try to emulate poll() when it's there if --disable-ffserver... 10l
author mmu_man
date Thu, 15 Feb 2007 15:39:39 +0000
parents d1e61f4d02cd
children 040097642b13
line wrap: on
line diff
--- a/os_support.h	Thu Feb 15 13:32:06 2007 +0000
+++ b/os_support.h	Thu Feb 15 15:39:39 2007 +0000
@@ -75,6 +75,7 @@
 #define closesocket close
 #endif
 
+#ifdef CONFIG_FFSERVER
 #ifndef HAVE_SYS_POLL_H
 typedef unsigned long nfds_t;
 
@@ -101,5 +102,6 @@
 
 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
 #endif /* HAVE_SYS_POLL_H */
+#endif /* CONFIG_FFSERVER */
 
 #endif /* _OS_SUPPORT_H */