summaryrefslogtreecommitdiffstats
path: root/stream/pnm.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/pnm.c')
-rw-r--r--stream/pnm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/stream/pnm.c b/stream/pnm.c
index 946d9273c2..d9d9513897 100644
--- a/stream/pnm.c
+++ b/stream/pnm.c
@@ -35,9 +35,17 @@
#include <stdlib.h>
#include <sys/time.h>
#include <inttypes.h>
+#ifndef HAVE_WINSOCK2_H
+#define closesocket close
+#include <sys/socket.h>
+//#include <netinet/in.h>
+//#include <netdb.h>
+#else
+#include <winsock2.h>
+#endif
#include "libavutil/intreadwrite.h"
-#include "network.h"
+
#include "stream.h"
#include "libmpdemux/demuxer.h"
#include "help_mp.h"