-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
lib/hostip.c: make NAT64 address synthesis on macOS working #7121
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
55f6d14
lib/hostip6.c: make NAT64 address synthesis on macOS working
19d5d8d
clean-up
2c55e08
Merge branch 'curl:master' into master
zajdee 16a804c
limit the SCDynamicStoreCopyProxies to OSX only
ae135fa
clean up the conditions
2030c25
reorder the conditional statement
5029d43
further condition clean-ups
bd5892b
m4 clean-up, C conditions simplification
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#*************************************************************************** | ||
# _ _ ____ _ | ||
# Project ___| | | | _ \| | | ||
# / __| | | | |_) | | | ||
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
# are also available at https://curl.se/docs/copyright.html. | ||
# | ||
# You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
# copies of the Software, and permit persons to whom the Software is | ||
# furnished to do so, under the terms of the COPYING file. | ||
# | ||
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
# KIND, either express or implied. | ||
# | ||
#*************************************************************************** | ||
|
||
AC_DEFUN([CURL_DARWIN_SYSTEMCONFIGURATION], [ | ||
AC_MSG_CHECKING([whether to link macOS SystemConfiguration framework]) | ||
case $host_os in | ||
darwin*) | ||
AC_COMPILE_IFELSE([ | ||
AC_LANG_PROGRAM([[ | ||
#include <TargetConditionals.h> | ||
]],[[ | ||
#if (TARGET_OS_OSX) | ||
return 0; | ||
#else | ||
#error Not a macOS | ||
#endif | ||
]]) | ||
],[ | ||
build_for_macos="yes" | ||
],[ | ||
build_for_macos="no" | ||
]) | ||
if test "x$build_for_macos" != xno; then | ||
AC_MSG_RESULT(yes) | ||
LDFLAGS="$LDFLAGS -framework SystemConfiguration" | ||
else | ||
AC_MSG_RESULT(no) | ||
fi | ||
;; | ||
*) | ||
AC_MSG_RESULT(no) | ||
esac | ||
]) |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure here if to wrap it with more conditions like the ones below - I need to check if it exists on targets like iOS. If not, the extra
#if
wrapping will be needed (or another, shared#define
created elsewhere).