Skip to content

Commit 714cdcd

Browse files
committed
Merge branch 'jc/solaris-0811'
* jc/solaris-0811: OpenSolaris 200811 (SunOS 5.11) does not want OLD_ICONV Teach Solaris that _XOPEN_SOURCE=600 really menas XPG6
2 parents c6e7393 + a0c0be9 commit 714cdcd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ ifeq ($(uname_S),SunOS)
702702
NO_MEMMEM = YesPlease
703703
NO_HSTRERROR = YesPlease
704704
NO_MKDTEMP = YesPlease
705-
OLD_ICONV = UnfortunatelyYes
705+
ifneq ($(uname_R),5.11)
706+
OLD_ICONV = UnfortunatelyYes
707+
endif
706708
ifeq ($(uname_R),5.8)
707709
NO_UNSETENV = YesPlease
708710
NO_SETENV = YesPlease

git-compat-util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141

4242
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX)
4343
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
44+
#ifndef __sun__
4445
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
4546
#endif
47+
#endif
4648
#define _ALL_SOURCE 1
4749
#define _GNU_SOURCE 1
4850
#define _BSD_SOURCE 1

0 commit comments

Comments
 (0)