]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config.mak.uname: update settings for OpenBSD
authorBrad Smith <brad@comstyle.com>
Mon, 2 Jun 2025 03:14:43 +0000 (23:14 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jun 2025 04:57:38 +0000 (21:57 -0700)
OpenBSD requires DIR_HAS_BSD_GROUP_SEMANTICS.

OpenBSD has never had the BSD sysctl KERN_PROC_PATHNAME nor
does it support or use the /proc filesystem.

OpenBSD has had strcasestr() since 3.8. OpenBSD has had memmem()
since 5.4.

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname

index b12d4e168ae11905391be45a41420a973ee610a9..362c34aa764a28e1f6b601f150a405c435e1f8b0 100644 (file)
@@ -294,17 +294,14 @@ ifeq ($(uname_S),FreeBSD)
        FILENO_IS_A_MACRO = UnfortunatelyYes
 endif
 ifeq ($(uname_S),OpenBSD)
-       NO_STRCASESTR = YesPlease
-       NO_MEMMEM = YesPlease
+       DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
        USE_ST_TIMESPEC = YesPlease
        NEEDS_LIBICONV = YesPlease
        BASIC_CFLAGS += -I/usr/local/include
        BASIC_LDFLAGS += -L/usr/local/lib
        HAVE_PATHS_H = YesPlease
        HAVE_BSD_SYSCTL = YesPlease
-       HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
        CSPRNG_METHOD = arc4random
-       PROCFS_EXECUTABLE_PATH = /proc/curproc/file
        FREAD_READS_DIRECTORIES = UnfortunatelyYes
        FILENO_IS_A_MACRO = UnfortunatelyYes
 endif