Code

Merge branch 'rj/maint-simplify-cygwin-makefile' into maint
authorJunio C Hamano <gitster@pobox.com>
Thu, 3 Dec 2009 21:51:16 +0000 (13:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Dec 2009 21:51:16 +0000 (13:51 -0800)
* rj/maint-simplify-cygwin-makefile:
  Makefile: merge two Cygwin configuration sections into one

Makefile

index 856ba098b8a6383b81fd7d7b716fae9fc39c7f85..ed517b1a29501581ee45ae143d91cb9bf9984933 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -787,6 +787,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
@@ -896,10 +898,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 = ;