changeset 3125:bc818669cdbd libavformat

Put network-related code under #ifdef
author ramiro
date Sat, 08 Mar 2008 17:43:53 +0000
parents 7591b632d1c6
children d39f51044b17
files os_support.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.h	Sat Mar 08 17:43:10 2008 +0000
+++ b/os_support.h	Sat Mar 08 17:43:53 2008 +0000
@@ -52,6 +52,7 @@
 #  endif
 #endif
 
+#ifdef CONFIG_NETWORK
 #ifndef HAVE_SOCKLEN_T
 typedef int socklen_t;
 #endif
@@ -89,5 +90,6 @@
 extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
 #endif /* HAVE_POLL_H */
 #endif /* CONFIG_FFSERVER */
+#endif /* CONFIG_NETWORK */
 
 #endif /* FFMPEG_OS_SUPPORT_H */