OSDN Git Service

Makefile: define __sun__ on SunOS
authorBrandon Casey <drafnel@gmail.com>
Fri, 5 Jun 2009 23:36:14 +0000 (18:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 20:21:49 +0000 (13:21 -0700)
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>
Makefile

index d8f9c22..4f838b2 100644 (file)
--- 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