From: Brandon Casey Date: Fri, 5 Jun 2009 23:36:14 +0000 (-0500) Subject: Makefile: define __sun__ on SunOS X-Git-Tag: v1.6.4-rc0~66^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b213019c00740289997f12e5f53b1baae588ac8a;p=git.git 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 Signed-off-by: Junio C Hamano --- 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