Skip to content

curl: Fix header conflict with zblue slist.h#36

Closed
EListenX wants to merge 1 commit intoopen-vela:devfrom
EListenX:dev
Closed

curl: Fix header conflict with zblue slist.h#36
EListenX wants to merge 1 commit intoopen-vela:devfrom
EListenX:dev

Conversation

@EListenX
Copy link
Contributor

@EListenX EListenX commented Oct 10, 2025

Add BEFORE keyword to target_include_directories to ensure curl's slist.h takes precedence over zblue's slist.h, resolving compilation errors with Curl_slist_append_nodup function.

bug: v/70561

endif()

target_include_directories(curl PRIVATE ${CURL_INCDIR})
target_include_directories(curl BEFORE PRIVATE ${CURL_INCDIR})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we suggest fix it in zblue port?

Replace global header exposure with targeted dependencies to prevent
zblue's slist.h from conflicting with curl's slist.h, resolving
Curl_slist_append_nodup compilation errors.

bug: v/70561

Signed-off-by: v-yichenxi <v-yichenxi@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants