]> git.ipfire.org Git - thirdparty/git.git/commit
compat: fixes for header handling with OpenBSD / NetBSD
authorBrad Smith <brad@comstyle.com>
Mon, 2 Jun 2025 07:29:02 +0000 (03:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 14:36:17 +0000 (07:36 -0700)
commit35ec1e22452fa9e56e81f53bd91ef688ad3b6624
treee6c72892975a697677392909420e9bab048a061d
parentb07857f7dcffee4d3b428df8dce6c9b49a57c9c1
compat: fixes for header handling with OpenBSD / NetBSD

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>
Reviewed-by: Collin Funk <collin.funk1@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/posix.h