diff options
author | Steve Lhomme <robux4@ycbcr.xyz> | 2020-06-22 09:09:05 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-08-31 08:12:54 +0200 |
commit | 2a1eced29438fdc4e3d26e7c73afd6639e851e68 (patch) | |
tree | a878d442afdf199cd63d3f69a8bf9d8bcfb5e5a8 /tests/Makefile.am | |
parent | 1bb552b8d33fd361aec8229c396dd74b6170379f (diff) | |
download | gnutls-2a1eced29438fdc4e3d26e7c73afd6639e851e68.tar.gz |
fix connectx not available on older macOS SDK
Fixes this compilation error:
system/fastopen.c:134:9: error: 'connectx' is only available on macOS 10.11 or newer [-Werror,-Wunguarded-availability]
ret = connectx(fd, &endpoints, SAE_ASSOCID_ANY, CONNECT_RESUME_ON_READ_WRITE | CONNECT_DATA_IDEMPOTENT, NULL, 0, NULL, NULL);
^~~~~~~~
/Applications/Xcode9.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/socket.h:713:5: note: 'connectx' has been marked as being introduced in macOS 10.11 here, but the deployment target is macOS 10.7.0
The detection is the same as found in curl [1].
If HAVE_BUILTIN_AVAILABLE is not available we fallback to the code without
TCP_FASTOPEN_OSX.
The OS values match exactly the values found in
https://opensource.apple.com/source/xnu/xnu-4570.41.2/bsd/sys/socket.h
[1] https://github.com/curl/curl/commit/870d849d48a26b8eeb0d4bb1f4655367a4a191ca
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Diffstat (limited to 'tests/Makefile.am')
0 files changed, 0 insertions, 0 deletions