Fix finding mmsghdr

This commit is contained in:
Xiaofeng Wang 2022-07-25 23:49:38 +08:00
parent 0b33769ee9
commit 388bf71813

View File

@ -115,8 +115,8 @@ endif()
include(CheckStructHasMember) include(CheckStructHasMember)
include(CheckSymbolExists) include(CheckSymbolExists)
# sendmmsg # sendmmsg , _GNU_SOURCE GNU
#list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE) list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
check_struct_has_member("struct mmsghdr" msg_hdr sys/socket.h HAVE_MMSG_HDR) check_struct_has_member("struct mmsghdr" msg_hdr sys/socket.h HAVE_MMSG_HDR)
check_symbol_exists(sendmmsg sys/socket.h HAVE_SENDMMSG_API) check_symbol_exists(sendmmsg sys/socket.h HAVE_SENDMMSG_API)
check_symbol_exists(recvmmsg sys/socket.h HAVE_RECVMMSG_API) check_symbol_exists(recvmmsg sys/socket.h HAVE_RECVMMSG_API)