add htonll and ntohll

This commit is contained in:
Ryo Nakamura
2024-02-12 00:54:28 +09:00
parent f152236844
commit 4e895bb72e
4 changed files with 45 additions and 1 deletions

View File

@@ -91,11 +91,14 @@ endif()
# Symbol check
check_symbol_exists(strlcat string.h HAVE_STRLCAT)
check_symbol_exists(htonll arpa/inet.h HAVE_HTONLL)
check_symbol_exists(ntohll arpa/inet.h HAVE_NTOHLL)
check_symbol_exists(strlcat string.h HAVE_STRLCAT)
if (NOT HAVE_STRLCAT)
list(APPEND OPENBSD_COMPAT_SRC src/openbsd-compat/strlcat.c)
endif()
# generate config.h in build dir
configure_file(
${mscp_SOURCE_DIR}/include/config.h.in