summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-08-08 19:18:10 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-08-08 19:18:10 +0000
commit6ff3f3e7cec7cd78a01d0bf76cbccfbe68dc0894 (patch)
tree1583c4839515588850c3bb9041ab9909e3cc02f5 /libavformat/os_support.h
parent0bd5396778a28c989ae4fb08190bf4daf4f4ea0e (diff)
Check for winsock2.h instead of __MINGW32__
Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 13615eec9e..30c069d78b 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -43,6 +43,9 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
# define usleep(t) Sleep((t) / 1000)
# include <fcntl.h>
# define lseek(f,p,w) _lseeki64((f), (p), (w))
+#endif
+
+#ifdef HAVE_WINSOCK2_H
# define HAVE_CLOSESOCKET 1
#endif