From d3d9070102c15e6da336fbc337b77301d6eb844c Mon Sep 17 00:00:00 2001 From: ksherlock Date: Wed, 20 Feb 2019 13:46:06 -0500 Subject: [PATCH] __USE_W32_SOCKETS --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7006c6..742ebf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(gsplus VERSION 0.14) if(CYGWIN OR MSYS) set(WIN32 1) - add_definitions(-DWIN32 -D_WIN32) + add_definitions(-DWIN32 -D_WIN32 -D__USE_W32_SOCKETS) endif() # msys/cygwin/mingw32 add dirent.h, etc. @@ -20,4 +20,4 @@ if(WIN32) include_directories(include/npcap) endif() -add_subdirectory(src bin) \ No newline at end of file +add_subdirectory(src bin)