On Mon, Dec 15, 2025 at 08:58:35PM +0100, Claudio Jeker wrote: > This code trips over the fact that os.h sets _XOPEN_SOURCE and so > prototypes in system headers under _BSD_SOURCE disapear. This results > in an int-conversion error because strcasestr() is undefined and therefor > defaults to int. > > The build system is so arcane that it seems best to just pass > -D_BSD_SOURCE=1 via CFLAGS to override the _XOPEN_SOURCE exclude. > With this the CFLAGS_base-clang are no longer needed.
This results in a few -Wmacro-redefined warnings since _BSD_SOURCE is set in a bunch of files, but that's harmless. I think it's an improvement over what we currently hvae ok tb
