summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-03-08 17:43:53 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-03-08 17:43:53 +0000
commit409e1d71eaf2897f97f9d95e01079f93cac266ee (patch)
tree62b779e725a045804cde675e8d23f8f903924ef7 /libavformat/os_support.h
parent591cf1170bd9a71c97776828963f299923aed1d7 (diff)
Put network-related code under #ifdef
Originally committed as revision 12372 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index ee095c75e7..6e6950050a 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -52,6 +52,7 @@ __declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
# endif
#endif
+#ifdef CONFIG_NETWORK
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
@@ -89,5 +90,6 @@ struct pollfd {
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 */