summaryrefslogtreecommitdiff
path: root/lib/curl_setup_once.h
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2023-03-14 11:57:31 +0000
committerViktor Szakats <commit@vsz.me>2023-03-14 11:57:55 +0000
commitebef55a61df0094b9790710a42f63c48e7de3c13 (patch)
treeffadfab8931970d05417df8a5bff8fff0802a605 /lib/curl_setup_once.h
parent31889210b9fce939f4250bd55fc65817952f491a (diff)
downloadcurl-ebef55a61df0094b9790710a42f63c48e7de3c13.tar.gz
wolfssl: add quic/ngtcp2 detection in cmake, and fix builds
- add QUIC/ngtcp2 detection in CMake with wolfSSL. Because wolfSSL uses zlib if available, move compression detection before TLS detection. (OpenSSL might also need this in the future.) - wolfSSL 5.5.0 started using C99 types in its `quic.h` header, but it doesn't #include the necessary C99 header itself, breaking builds (unless another dependency pulled it by chance.) Add local workaround for it. For this to work with all build tools, we had to fix our header detection first. Ref: #10745 Ref: https://github.com/curl/curl-for-win/commit/6ad5f6ecc15620c15625fc443476b3a1ecef4f3f Closes #10739
Diffstat (limited to 'lib/curl_setup_once.h')
-rw-r--r--lib/curl_setup_once.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h
index e68eb502a..dde7229d2 100644
--- a/lib/curl_setup_once.h
+++ b/lib/curl_setup_once.h
@@ -69,6 +69,14 @@
#include <unistd.h>
#endif
+#ifdef USE_WOLFSSL
+# if defined(HAVE_STDINT_H)
+# include <stdint.h>
+# elif defined(HAVE_INTTYPES_H)
+# include <inttypes.h>
+# endif
+#endif
+
#ifdef __hpux
# if !defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
# ifdef _APP32_64BIT_OFF_T