From: Collin Funk <collin.funk1@gmail.com>
To: Brad Smith <brad@comstyle.com>, git@vger.kernel.org
Subject: Re: [PATCH] compat: fixes for header handling with OpenBSD / NetBSD
Date: Mon, 02 Jun 2025 11:06:55 -0700 [thread overview]
Message-ID: <87wm9ut3uo.fsf@gmail.com> (raw)
In-Reply-To: <aD1SvlRypkhczxRS@humpty.home.comstyle.com>
Hi Brad,
You wrote:
> 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 <brad@comstyle.com>
> ---
> compat/posix.h | 11 +++++------
> 1 file changed, 5 insertions(+), 6 deletions(-)
I noticed this as well when testing your other fixes.
Just one question about this chunk:
> #define _DEFAULT_SOURCE 1
> -#define _NETBSD_SOURCE 1
Why remove this definition? I think it might be useful on some older
systems and seems harmless otherwise.
Other than that, I tested on OpenBSD 7.6 and NetBSD 10.0 and this patch
fixes the missing declarations. So:
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Collin
next prev parent reply other threads:[~2025-06-02 18:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-02 7:29 [PATCH] compat: fixes for header handling with OpenBSD / NetBSD Brad Smith
2025-06-02 18:06 ` Collin Funk [this message]
2025-06-03 0:36 ` Junio C Hamano
2025-06-03 3:56 ` Brad Smith
2025-06-03 4:05 ` Collin Funk
2025-06-03 14:37 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wm9ut3uo.fsf@gmail.com \
--to=collin.funk1@gmail.com \
--cc=brad@comstyle.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.