comparison 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
comparison
equal deleted inserted replaced
1798:d1e61f4d02cd 1799:0dc3a767943d
73 /* most of the time closing a socket is just closing an fd */ 73 /* most of the time closing a socket is just closing an fd */
74 #if HAVE_CLOSESOCKET != 1 74 #if HAVE_CLOSESOCKET != 1
75 #define closesocket close 75 #define closesocket close
76 #endif 76 #endif
77 77
78 #ifdef CONFIG_FFSERVER
78 #ifndef HAVE_SYS_POLL_H 79 #ifndef HAVE_SYS_POLL_H
79 typedef unsigned long nfds_t; 80 typedef unsigned long nfds_t;
80 81
81 struct pollfd { 82 struct pollfd {
82 int fd; 83 int fd;
99 #define POLLNVAL 0x1000 /* invalid file descriptor */ 100 #define POLLNVAL 0x1000 /* invalid file descriptor */
100 101
101 102
102 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout); 103 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
103 #endif /* HAVE_SYS_POLL_H */ 104 #endif /* HAVE_SYS_POLL_H */
105 #endif /* CONFIG_FFSERVER */
104 106
105 #endif /* _OS_SUPPORT_H */ 107 #endif /* _OS_SUPPORT_H */