]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/os_support.h
remove obsolete requirements, quicktime 6 is from 2002, not sure if muxing scheme...
[ffmpeg] / libavformat / os_support.h
index ee095c75e7f9e7450310790f2d752a0c3d61139c..34970e39520c8707ef322dac085b4bb7f7a07969 100644 (file)
@@ -28,8 +28,8 @@
  */
 
 #ifdef __MINGW32__
-__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
-// #  include <windows.h>
+#  define WIN32_LEAN_AND_MEAN
+#  include <windows.h>
 #  define usleep(t)    Sleep((t) / 1000)
 #  include <fcntl.h>
 #  define lseek(f,p,w) _lseeki64((f), (p), (w))
@@ -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
@@ -68,7 +69,7 @@ typedef unsigned long nfds_t;
 struct pollfd {
     int fd;
     short events;  /* events to look for */
-    short revents; /* events that occured */
+    short revents; /* events that occurred */
 };
 
 /* events & revents */
@@ -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 */