Skip to content

Commit b213019

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4cb18a4 commit b213019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ ifeq ($(uname_S),SunOS)
723723
endif
724724
INSTALL = /usr/ucb/install
725725
TAR = gtar
726-
BASIC_CFLAGS += -D__EXTENSIONS__
726+
BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
727727
endif
728728
ifeq ($(uname_O),Cygwin)
729729
NO_D_TYPE_IN_DIRENT = YesPlease

0 commit comments

Comments
 (0)