Skip to content

fix(build): define _GNU_SOURCE so musl declares strcasestr - #116

Merged
m1ngsama merged 1 commit into
mainfrom
fix/musl-strcasestr
Oct 14, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
fix/musl-strcasestr

Conversation

@m1ngsama

Copy link
Copy Markdown
Owner

Building on Alpine failed because musl only declares strcasestr under _GNU_SOURCE, and src/commands.c and src/message.c defined _DEFAULT_SOURCE.

  • Both files now define _GNU_SOURCE, which glibc also accepts.
  • make tnt tntctl builds on alpine:3.22 with build-base libssh-dev and no warnings.

Closes #100.

@m1ngsama
m1ngsama merged commit 89da7d5 into main Oct 14, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the fix/musl-strcasestr branch October 14, 2026 13:49
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.

Build fails on musl: strcasestr is undeclared

1 participant