Skip to content

Commit dd2186f

Browse files
Merge pull request #8021 from bigbrett/cmake-curl-uintptr_t-fix
fix cmake build error for curl builds
2 parents 2285c02 + 32ebaea commit dd2186f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ check_type_size("__uint128_t" __UINT128_T)
131131
check_type_size("long long" SIZEOF_LONG_LONG)
132132
check_type_size("long" SIZEOF_LONG)
133133
check_type_size("time_t" SIZEOF_TIME_T)
134+
check_type_size("uintptr_t" HAVE_UINTPTR_T)
134135

135136
# By default, HAVE___UINT128_T gets defined as TRUE,
136137
# but we want it as 1.
@@ -419,16 +420,17 @@ if(WOLFSSL_CURL)
419420
set(WOLFSSL_MD4 "yes")
420421
set(WOLFSSL_DES3 "yes")
421422
set(WOLFSSL_ALPN "yes")
423+
set(WOLFSSL_WOLFSSH "yes")
422424
set(WOLFSSL_OPENSSLEXTRA "yes")
423425
set(WOLFSSL_CRL "yes")
424426
set(WOLFSSL_OCSP "yes")
425427
set(WOLFSSL_OCSPSTAPLING "yes")
426428
set(WOLFSSL_OCSPSTAPLING_V2 "yes")
429+
# Note: OCSP sets requisite HAVE_TLS_EXTENSIONS and HAVE_CERTIFICATE_STATUS_REQUEST(_V2)
427430
set(WOLFSSL_SNI "yes")
428431
set(WOLFSSL_ALT_CERT_CHAINS "yes")
429432
set(WOLFSSL_IP_ALT_NAME "yes")
430433
set(WOLFSSL_SESSION_TICKET "yes")
431-
set(WOLFSSL_WOLFSSH "yes")
432434
list(APPEND WOLFSSL_DEFINITIONS
433435
"-DNO_SESSION_CACHE_REF" "-DWOLFSSL_DES_ECB")
434436
endif()

cmake/config.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
/* Define to 1 if the system has the type `__uint128_t'. */
4747
#cmakedefine HAVE___UINT128_T @HAVE___UINT128_T@
4848

49+
/* Define to 1 if the system has the type `uintptr_t'. */
50+
#cmakedefine HAVE_UINTPTR_T @HAVE_UINTPTR_T@
51+
4952
/* Define to the full name of this package. */
5053
#define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"
5154

0 commit comments

Comments
 (0)