Skip to content

Commit a3523a3

Browse files
authored
Fix MinGW error with inet_ntop and inet_pton (#105)
1 parent 8e0af4a commit a3523a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ target_include_directories(
4242
${PROJECT_SOURCE_DIR}/trantor/net/inner
4343
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/third_party/wepoll>)
4444

45+
if(WIN32)
46+
target_compile_definitions(
47+
${PROJECT_NAME}
48+
PUBLIC -D_WIN32_WINNT=0x0601)
49+
endif(WIN32)
50+
4551
set(TRANTOR_SOURCES
4652
trantor/utils/AsyncFileLogger.cc
4753
trantor/utils/ConcurrentTaskQueue.cc

0 commit comments

Comments
 (0)