aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-04-03 02:47:00 -0500
committerJunio C Hamano <gitster@pobox.com>2010-04-03 11:26:35 -0700
commitecebd1e1a75883b3927c0bffe0cd27b933ed2c67 (patch)
tree53cb91f1aec79095a9fa05f609f30b09307ba58f /Makefile
parent6555b196f00128f13ab8f719ee1e156238f16bb3 (diff)
downloadgit-ecebd1e1a75883b3927c0bffe0cd27b933ed2c67.tar.gz
git-ecebd1e1a75883b3927c0bffe0cd27b933ed2c67.tar.xz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 11ec3e250..140d19e7d 100644
--- a/Makefile
+++ b/Makefile
@@ -831,7 +831,7 @@ ifeq ($(uname_S),SunOS)
BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
endif
ifeq ($(uname_O),Cygwin)
- ifneq ($(wordlist 1, 2, $(subst ., ,$(uname_R))),1 7)
+ ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
NO_D_TYPE_IN_DIRENT = YesPlease
NO_D_INO_IN_DIRENT = YesPlease
NO_STRCASESTR = YesPlease