]> git.ipfire.org Git - thirdparty/git.git/commit
config.mak.uname: set NO_MEMMEM only for functional version
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Wed, 2 Jul 2025 09:37:35 +0000 (02:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jul 2025 16:10:01 +0000 (09:10 -0700)
commit46a3ab744b9d83e9c21a5b9f6ede29e840f658b4
treec76c415ab9034c8e5f66a3b13b1c3abf57764f0a
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0
config.mak.uname: set NO_MEMMEM only for functional version

FreeBSD 6 introduced memmem(), but the implementation diverged
from what was standard everywhere else (including our "compat"
fallback).

FreeBSD 10.4 (went EOL in 2018) corrected the functionality bugs
but kept a suboptimal implementation until FreeBSD 11.4 (the last
version of FreeBSD 11, that went EOL in September 2021).

Let's draw the line to require FreeBSD 12 or newer, which allows us
to drop the special casing of FreeBSD 4.x and rely on the platform
implementation of memmem() unconditionally for all versions that are
still being supported.

Suggested-by: Brad Smith <brad@comstyle.com>
Helped-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname