Code

Makefile: merge two Cygwin configuration sections into one
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 27 Oct 2009 19:11:55 +0000 (19:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Nov 2009 01:58:42 +0000 (17:58 -0800)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index fea237bc80978c1011793ee0cbd8398b2e9f773b..8e1cfc556fc164ac48c4788aa2d86997a97c4c78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -782,6 +782,8 @@ ifeq ($(uname_O),Cygwin)
        NO_MMAP = YesPlease
        NO_IPV6 = YesPlease
        X = .exe
+       COMPAT_OBJS += compat/cygwin.o
+       UNRELIABLE_FSTAT = UnfortunatelyYes
 endif
 ifeq ($(uname_S),FreeBSD)
        NEEDS_LIBICONV = YesPlease
@@ -891,10 +893,6 @@ ifeq ($(uname_S),HP-UX)
        NO_SYS_SELECT_H = YesPlease
        SNPRINTF_RETURNS_BOGUS = YesPlease
 endif
-ifneq (,$(findstring CYGWIN,$(uname_S)))
-       COMPAT_OBJS += compat/cygwin.o
-       UNRELIABLE_FSTAT = UnfortunatelyYes
-endif
 ifdef MSVC
        GIT_VERSION := $(GIT_VERSION).MSVC
        pathsep = ;