cmake: SerenityOS has thread-safe getaddrinfo#12095
Closed
vszakats wants to merge 3 commits intocurl:masterfrom
Closed
cmake: SerenityOS has thread-safe getaddrinfo#12095vszakats wants to merge 3 commits intocurl:masterfrom
getaddrinfo#12095vszakats wants to merge 3 commits intocurl:masterfrom
Conversation
Normal detection fails. This patch opts in SerenityOS into `HAVE_GETADDRINFO_THREADSAFE`. Ref: curl#12093 (comment) Ref: curl#12093 (comment) Assisted-by: Kartatz on Github Closes #xxxxx
Member
Author
|
Also added it to autotools also, based on this output: Ref: #12093 (comment) and assuming the I haven't tested this, please let me know if this correct or not, and if we should drop it or keep it. (It's also possible the autotools detection correctly get this already.) /cc @Kartatz |
getaddrinfogetaddrinfo
|
I did some tests and it seems that the autoconf script already detects this correctly. I added these lines to #if defined(HAVE_GETADDRINFO_THREADSAFE)
#warning "getaddrinfo is thread-safe"
#else
#error "getaddrinfo is not thread-safe"
#endifThen tried to cross-compile: So it seems to be working properly. |
Member
Author
|
Thanks for your tests. I'm leaving autotools as-is then. Another interesting bit is why CMake detection fails. I must have botched copying the logic from autotools to Cmake. |
This reverts commit 96d6b0b.
getaddrinfogetaddrinfo
Member
Author
|
Closing in favour of #12094. |
vszakats
added a commit
that referenced
this pull request
Oct 12, 2023
Fix `HAVE_H_ERRNO_ASSIGNABLE` to not run, only compile its test snippet, aligning this with autotools. This fixes an error when doing cross-builds and also actually detects this feature. It affected systems not allowlisted into this, e.g. SerenityOS. We used this detection result to enable `HAVE_GETADDRINFO_THREADSAFE`. Follow-up to 04a3a37 #11979 Ref: #12095 (closed in favour of this patch) Ref: #11964 (effort to sync cmake detections with autotools) Reported-by: Kartatz on Github Assisted-by: Kartatz on Github Fixes #12093 Closes #12094
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Normal detection fails. This patch opts in SerenityOS into
HAVE_GETADDRINFO_THREADSAFEwith CMake.Delete this once detection is fixed.
Ref: #12093 (comment)
Ref: #12093 (comment)
Assisted-by: Kartatz on Github
Closes #12095