Check for winsock2.h instead of __MINGW32__

Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla
2007-08-08 19:18:10 +00:00
parent 0bd5396778
commit 6ff3f3e7ce
4 changed files with 10 additions and 5 deletions
+3
View File
@@ -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