Fix compilation errors on Windows

This commit is contained in:
Cheng Zhao 2016-03-10 15:57:03 +09:00
parent 20466bad8f
commit cadd1969d9
5 changed files with 11 additions and 5 deletions

View file

@ -8,6 +8,7 @@
// winsock2.h must be included first in order to ensure it is included before
// windows.h.
#include <winsock2.h>
#include <ws2tcpip.h>
#elif defined(OS_POSIX)
#include <arpa/inet.h>
#include <errno.h>