git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] compat: fixes for header handling with OpenBSD / NetBSD

From
Collin Funk <collin.funk1@gmail.com>
Date
Jun 3, 2025, 04:05 UTC
Message-ID
<87y0u9qxk8.fsf@gmail.com>
In-Reply-To
<47c58a78-d38b-4170-87fc-c9332618d0da@comstyle.com>
Brad Smith <brad@comstyle.com> writes:
Show 11 quoted lines
>> Why remove this definition? I think it might be useful on some older
>> systems and seems harmless otherwise.
>
> _XOPEN_SOURCE restricts the build environment. _NETBSD_SOURCE is added
> to counteract
> _XOPEN_SOURCE. Not setting it in the first place provides everything
> by default.
>
> I was removing it as it should no longer be necessary.
>
> But as said, it is harmless. I can leave it in if desired.
In Autoconf's AC_USE_SYSTEM_EXTENSIONS it is defined with the comment:
    /* Enable general extensions on NetBSD.
       Enable NetBSD compatibility extensions on Minix.  */

I would prefer just leaving it for any old system that may need it. Or in case git uses features from a recent standard that might still be hidden as a NetBSD extension.

For example, POSIX.1-2024 has been released, but most functions added there are still under _GNU_SOURCE in current glibc.

Collin
Previous: Brad SmithNext: Junio C Hamano
Message 5 of 6 in “compat: fixes for header handling with OpenBSD / NetBSD”
  1. compat: fixes for header handling with OpenBSD / NetBSDBrad Smith, Jun 2, 2025
  2. Collin FunkJun 2, 2025
  3. Junio C HamanoJun 3, 2025
  4. Brad SmithJun 3, 2025
  5. Collin FunkJun 3, 2025
  6. Junio C HamanoJun 3, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.