diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-02-12 00:54:28 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-02-12 00:54:28 +0900 |
commit | 4e895bb72e035c7c5034dd8beca7c8497413ad9e (patch) | |
tree | be39e85747a3f3562ce49032a39f2c87614dc640 /CMakeLists.txt | |
parent | f1522368446310ab697e2a60cd69119d741cf7cf (diff) |
add htonll and ntohll
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fd554f..f8871cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 |