Merge pull request #70 from cxong/patch-1

reduce warnings on MSVC
This commit is contained in:
Lee Salzman 2017-05-21 09:44:35 -04:00 committed by GitHub
commit 0891c520d2

View file

@ -18,6 +18,9 @@ check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" H
set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h")
check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)
unset(CMAKE_EXTRA_INCLUDE_FILES)
if(MSVC)
add_definitions(-W3)
endif()
if(HAS_FCNTL)
add_definitions(-DHAS_FCNTL=1)