Commit 365d0cfb authored by Alexey Pavlov's avatar Alexey Pavlov Committed by Sebastian Dröge

ext: Include winsock.h on Windows when required

https://bugzilla.gnome.org/show_bug.cgi?id=733052
parent f8778ee2
......@@ -48,12 +48,16 @@
#include <string.h>
#include <stdio.h>
#ifdef _WIN32
#include <winsock.h>
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
......
......@@ -34,12 +34,16 @@
#include <string.h>
#include <stdio.h>
#ifdef _WIN32
#include <winsock.h>
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
......
......@@ -53,7 +53,12 @@
#include <errno.h>
#include <math.h>
#include <gst/gst.h>
#include <arpa/inet.h>
#ifdef _WIN32
#include <winsock.h>
#define bzero(p, l) memset(p, 0, l)
#else
#include <arpa/inet.h>
#endif
#include "MotionCells.h"
uint64_t ntohl64 (uint64_t val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment