New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: add missing inet_ntop check #9689
Conversation
This adds the missing half of the check, next to the other half already present in `lib/curl_config.h.cmake`.
Results in two build warnings (promoted to errors in CI) with old MSVC envs:
|
It looks like in Windows earlier versions of the SDK (which would likely be used with those versions of Visual Studio) declared inet_ntop addr parameter without const qualfier. Here's from the Windows 7 SDK: PCSTR
WSAAPI
inet_ntop(
__in INT Family,
__in PVOID pAddr,
__out_ecount(StringBufSize) PSTR pStringBuf,
__in size_t StringBufSize
); Lines 152 to 169 in 93d0928
|
@jay: Indeed. If you have a patch for that, we could include it, otherwise I had force-disabled this detection for these MSVC versions (tests still pending). |
Upcoming curl release received fixes to correctly detect these build flags, so drop manual settings for them: - `HAVE_UNISTD_H` and with it: `HAVE_FTRUNCATE` - `HAVE_STRTOK_R` - `HAVE_STRCASECMP` - `HAVE_INET_NTOP` Ref: curl/curl#9687 Ref: curl/curl#9689
This adds the missing half of the check, next to the other half already present in `lib/curl_config.h.cmake`. Force disable `HAVE_INET_NTOP` for old MSVC where it caused compiler warnings. Reviewed-by: Daniel Stenberg Closes curl#9689
This adds the missing half of the check, next to the other half already present in
lib/curl_config.h.cmake
.Force disable
HAVE_INET_NTOP
for old MSVC where it caused compiler warnings.Reviewed-by: Daniel Stenberg
Closes #9689