Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Oct 18, 2025

  • do not pre-fill HAVE_LINUX_TCP_H on Linux.
    linux/tcp.h is a Linux kernel userspace header. It's likely
    installed when using glibc and likely missing by default when using
    something else, e.g. MUSL (e.g. on Alpine).

    Therefore always detect it for Linux targets, and only pre-fill it for
    non-Linux ones.

  • do not pre-fill HAVE_GLIBC_STRERROR_R on Linux.
    To fix it for non-glibc envs, e.g. MUSL (e.g. on Alpine).

Note, the pre-fill option is a disabled by default, internal option and
strongly not recommended outside of curl development.

@vszakats vszakats added the cmake label Oct 18, 2025
@github-actions github-actions bot added the build label Oct 18, 2025
@vszakats vszakats changed the title cmake: do not pre-fill HAVE_LINUX_TCP_H on Linux cmake: do not pre-fill HAVE_LINUX_TCP_H on Linux (with _CURL_PREFILL=ON) Oct 18, 2025
@vszakats vszakats changed the title cmake: do not pre-fill HAVE_LINUX_TCP_H on Linux (with _CURL_PREFILL=ON) cmake: Linux pre-fill fixes for non-glibc envs (when _CURL_PREFILL=ON) Oct 18, 2025
@vszakats vszakats changed the title cmake: Linux pre-fill fixes for non-glibc envs (when _CURL_PREFILL=ON) cmake: fix Linux pre-fills for non-glibc (when _CURL_PREFILL=ON) Oct 18, 2025
@vszakats vszakats closed this in f30f130 Oct 18, 2025
@vszakats vszakats deleted the cm-linux-tcp-prefill branch October 18, 2025 11:54
vszakats added a commit that referenced this pull request Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant