Skip to content

Commit d25f8c4

Browse files
committed
Enable wolfIP HTTP so its httpd.h actually declares the API the example calls
1 parent 8bac61f commit d25f8c4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fullstack/freertos-wolfip-wolfssl-https/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
88
# wolfSSL configuration
99
add_definitions(-DWOLFSSL_USER_SETTINGS)
1010
add_definitions(-DWOLFSSL_WOLFIP)
11+
# wolfip's httpd.h puts its whole body behind this, so without it the header
12+
# includes cleanly and every http_* symbol is undeclared
13+
add_definitions(-DWOLFIP_ENABLE_HTTP)
1114

1215
# FreeRTOS Kernel source files for POSIX port
1316
set(FREERTOS_PORT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/freertos/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix)

0 commit comments

Comments
 (0)