@matheusbsbs / matheus-bagliano / commits / ecebd1e1a7
Fork 0

Makefile: future-proof Cygwin version check

Tweak the condition that detects old Cygwin versions to not include versions such as 1.8, 1.11, and 2.1. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Apr 3, 2010 at 02:47 UTC ecebd1e1a75883b3927c0bffe0cd27b933ed2c67
1 file changed +1 -1
Makefile
+1 -1
@@ -831,7 +831,7 @@ ifeq ($(uname_S),SunOS)
831 BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
832 endif
833 ifeq ($(uname_O),Cygwin)
834 - ifneq ($(wordlist 1, 2, $(subst ., ,$(uname_R))),1 7)
834 + ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
835 NO_D_TYPE_IN_DIRENT = YesPlease
836 NO_D_INO_IN_DIRENT = YesPlease
837 NO_STRCASESTR = YesPlease