aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2009-06-05 18:36:14 -0500
committerJunio C Hamano <gitster@pobox.com>2009-06-06 13:21:49 -0700
commitb213019c00740289997f12e5f53b1baae588ac8a (patch)
treee8af83f28bb6e5c0527d4a2d457dd9a2ae069394 /Makefile
parent4cb18a49dfd37f9ecabad603d845382863513378 (diff)
downloadgit-b213019c00740289997f12e5f53b1baae588ac8a.tar.gz
git-b213019c00740289997f12e5f53b1baae588ac8a.tar.xz
Makefile: define __sun__ on SunOS
The SUNWspro compiler does not define __sun__ (like GCC does). A check of this macro was recently added to detect compilation on SunOS and to modify the handling of the NO_ICONV and _XOPEN_SOURCE feature macros. Signed-off-by: Brandon Casey <drafnel@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 d8f9c225f..4f838b2c0 100644
--- a/Makefile
+++ b/Makefile
@@ -723,7 +723,7 @@ ifeq ($(uname_S),SunOS)
endif
INSTALL = /usr/ucb/install
TAR = gtar
- BASIC_CFLAGS += -D__EXTENSIONS__
+ BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
endif
ifeq ($(uname_O),Cygwin)
NO_D_TYPE_IN_DIRENT = YesPlease