aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-31 16:18:02 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-31 16:18:02 -0700
commit714cdcd03e2caac6e2dc8d94debc7c800742f546 (patch)
tree12797b5947f811b1dfd96208bfc93207a0ac85e5
parentc6e73936b9ea26fcad0d77d68194545082343c43 (diff)
parenta0c0be97d492ea870cb8fb626eaca43b4d9cf34f (diff)
downloadgit-714cdcd03e2caac6e2dc8d94debc7c800742f546.tar.gz
git-714cdcd03e2caac6e2dc8d94debc7c800742f546.tar.xz
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
-rw-r--r--Makefile4
-rw-r--r--git-compat-util.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ab6f6e14e..0ab1cff30 100644
--- a/Makefile
+++ b/Makefile
@@ -702,7 +702,9 @@ ifeq ($(uname_S),SunOS)
NO_MEMMEM = YesPlease
NO_HSTRERROR = YesPlease
NO_MKDTEMP = YesPlease
- OLD_ICONV = UnfortunatelyYes
+ ifneq ($(uname_R),5.11)
+ OLD_ICONV = UnfortunatelyYes
+ endif
ifeq ($(uname_R),5.8)
NO_UNSETENV = YesPlease
NO_SETENV = YesPlease
diff --git a/git-compat-util.h b/git-compat-util.h
index c7cf2d5d9..4236647c9 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -41,8 +41,10 @@
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX)
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
+#ifndef __sun__
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#endif
+#endif
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _BSD_SOURCE 1