comparison os_support.h @ 3125:bc818669cdbd libavformat

Put network-related code under #ifdef
author ramiro
date Sat, 08 Mar 2008 17:43:53 +0000
parents 7591b632d1c6
children d39f51044b17
comparison
equal deleted inserted replaced
3124:7591b632d1c6 3125:bc818669cdbd
50 # warning SA_RESTART not implemented; ffserver might misbehave. 50 # warning SA_RESTART not implemented; ffserver might misbehave.
51 # define SA_RESTART 0 51 # define SA_RESTART 0
52 # endif 52 # endif
53 #endif 53 #endif
54 54
55 #ifdef CONFIG_NETWORK
55 #ifndef HAVE_SOCKLEN_T 56 #ifndef HAVE_SOCKLEN_T
56 typedef int socklen_t; 57 typedef int socklen_t;
57 #endif 58 #endif
58 59
59 /* most of the time closing a socket is just closing an fd */ 60 /* most of the time closing a socket is just closing an fd */
87 88
88 89
89 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout); 90 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
90 #endif /* HAVE_POLL_H */ 91 #endif /* HAVE_POLL_H */
91 #endif /* CONFIG_FFSERVER */ 92 #endif /* CONFIG_FFSERVER */
93 #endif /* CONFIG_NETWORK */
92 94
93 #endif /* FFMPEG_OS_SUPPORT_H */ 95 #endif /* FFMPEG_OS_SUPPORT_H */