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

From: Collin Funk <[email-masked]>
Date: Mon, 02 Jun 2025 21:39:36 -0700

Brad Smith <[email-masked]> writes:

> Handle OpenBSD and NetBSD as FreeBSD / DragonFly are. OpenBSD would
> need _XOPEN_SOURCE to be set to 700. Its simpler to just not set
> _XOPEN_SOURCE.
>
>     CC strbuf.o
> strbuf.c:645:6: warning: call to undeclared function 'getdelim'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>         r = getdelim(&sb->buf, &sb->alloc, term, fp);
>             ^
> 1 warning generated.
>
> Signed-off-by: Brad Smith <[email-masked]>
> ---
>  compat/posix.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Thanks!

Reviewed-by: Collin Funk <[email-masked]>

Collin