Skip to content

Is the ESP related include files intentionally added for non LWS_ESP_PLATFORM? What's the workaround? #3581

Description

@sa3mv3g

HI

I am configuring this repo with the following options in top CMakeLists.txt

# ==========================================================================
# WebSocket Configuration (must be set BEFORE FetchContent_MakeAvailable)
# ==========================================================================
# for now, disable security.
set(LWS_WITH_SSL OFF CACHE BOOL "Build without security" FORCE)
# Build only static library to avoid duplicate symbol issues
set(LWS_WITH_SHARED OFF CACHE BOOL "Build the shared version of the library" FORCE)
# build for platform
set(LWS_PLAT_FREERTOS ON CACHE BOOL "" FORCE)
# do not need IPV6.
set(LWS_IPV6 OFF CACHE BOOL "" FORCE)

My intention is to use FREERTOS + LWIP with this lib and this is not an ESP board.

However, while compiling, I see that https://github.com/warmcat/libwebsockets/blob/main/include/libwebsockets/lws-freertos.h#L65 contains ESP specific header files.

Are these intentional? Can I delete them without any side-effect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions