summaryrefslogtreecommitdiff
blob: a874236dc65c751d51f62fec496efb8a99ceb920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -Naurp git-2.5.1.orig/config.mak.uname git-2.5.1/config.mak.uname
--- git-2.5.1.orig/config.mak.uname	2015-08-28 15:37:13.000000000 -0400
+++ git-2.5.1/config.mak.uname	2015-09-06 18:54:28.538437000 -0400
@@ -189,7 +189,9 @@ ifeq ($(uname_O),Cygwin)
 	SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
 endif
 ifeq ($(uname_S),FreeBSD)
-	NEEDS_LIBICONV = YesPlease
+	ifeq ($(shell expr "$(uname_R)" : '[1-9]\.'),2)
+		NEEDS_LIBICONV = YesPlease
+	endif
 	OLD_ICONV = YesPlease
 	NO_MEMMEM = YesPlease
 	BASIC_CFLAGS += -I/usr/local/include