]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/network.h
bring back h264 build
[ffmpeg] / libavformat / network.h
index 3aa8ba8367969681a47ef1a8ea62eff89dadecbf..723b4f9536645e431db35834e40a8cb84e5f33fd 100644 (file)
 #ifndef NETWORK_H
 #define NETWORK_H
 
+#ifdef __MINGW32__
+#include <winsock2.h>
+#include <ws2tcpip.h>
+
+#define ff_neterrno() WSAGetLastError()
+#define FF_NETERROR(err) WSA##err
+#define WSAEAGAIN WSAEWOULDBLOCK
+#else
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <netdb.h>
+
+#define ff_neterrno() errno
+#define FF_NETERROR(err) err
+#endif
+
 #ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
-#include <netdb.h>
+
+int ff_socket_nonblock(int socket, int enable);
 
 #if !defined(HAVE_INET_ATON)
 /* in os_support.c */