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>
Brandon Casey committed
Jun 5, 2009 at 18:36 UTC
b213019c00740289997f12e5f53b1baae588ac8a
1 file changed
+1
-1
Makefile
+1
-1
@@ -723,7 +723,7 @@ ifeq ($(uname_S),SunOS)
723
endif
724
INSTALL = /usr/ucb/install
725
TAR = gtar
726
- BASIC_CFLAGS += -D__EXTENSIONS__
726
+ BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
727
endif
728
ifeq ($(uname_O),Cygwin)
729
NO_D_TYPE_IN_DIRENT = YesPlease