Skip to content

src/rdkafka_conf.c: fix curl/curl.h include when WITH_CURL=OFF#5309

Open
Thomas Devoogdt (ThomasDevoogdt) wants to merge 1 commit intoconfluentinc:masterfrom
ThomasDevoogdt:bugfix/curl
Open

src/rdkafka_conf.c: fix curl/curl.h include when WITH_CURL=OFF#5309
Thomas Devoogdt (ThomasDevoogdt) wants to merge 1 commit intoconfluentinc:masterfrom
ThomasDevoogdt:bugfix/curl

Conversation

@ThomasDevoogdt
Copy link

@ThomasDevoogdt Thomas Devoogdt (ThomasDevoogdt) commented Feb 15, 2026

Change #ifdef to #if for WITH_OAUTHBEARER_OIDC preprocessor check. When using CMake's cmakedefine01, the macro is always defined (as 0 or 1), so #ifdef always evaluates to true. Using #if correctly checks the value.

Fixes: #5204

@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ ThomasDevoogdt
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Change #ifdef to #if for WITH_OAUTHBEARER_OIDC preprocessor check.
When using CMake's cmakedefine01, the macro is always defined (as 0 or 1),
so #ifdef always evaluates to true. Using #if correctly checks the value.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.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.

WITH_CURL off still tries to include curl.h

1 participant