Code

Add Makefile check for FreeBSD 4.9-SECURITY
authorDavid M. Syzdek <david.syzdek@acsalaska.net>
Sun, 26 Oct 2008 11:52:47 +0000 (03:52 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Nov 2008 08:12:35 +0000 (01:12 -0700)
If the system is FreeBSD 4.9, then NO_UINTMAX_T and NO_STRTOUMAX is defined.

Signed-off-by: David M. Syzdek <david.syzdek@acsalaska.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 0698365078c4b98de04da8701c68b5d1811b3487..426e1a652f23e55bf74f1c9024087d21cf285b49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -694,6 +694,10 @@ ifeq ($(uname_S),FreeBSD)
        THREADED_DELTA_SEARCH = YesPlease
        COMPAT_CFLAGS += -Icompat/regex
        COMPAT_OBJS += compat/regex/regex.o
+       ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
+               NO_UINTMAX_T = YesPlease
+               NO_STRTOUMAX = YesPlease
+       endif
 endif
 ifeq ($(uname_S),OpenBSD)
        NO_STRCASESTR = YesPlease