summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2013-07-09 08:11:05 +0000
committerrichard <richard@pkgsrc.org>2013-07-09 08:11:05 +0000
commit0f09aabfd2cea8fffe7c3395212cedfe8c4d0972 (patch)
tree95c821fac8314236dc5a7f822c83196474ac6fff /lang
parentcb2790c3d84c95b4da082fceeed4f4c3aac3595a (diff)
downloadpkgsrc-0f09aabfd2cea8fffe7c3395212cedfe8c4d0972.tar.gz
Fix machine/endian.h include for solaris
TODO: http://article.gmane.org/gmane.comp.compilers.llvm.devel/63317
Diffstat (limited to 'lang')
-rw-r--r--lang/clang/distinfo3
-rw-r--r--lang/clang/patches/patch-include_llvm_Support_Host.h28
2 files changed, 30 insertions, 1 deletions
diff --git a/lang/clang/distinfo b/lang/clang/distinfo
index 3e944371e52..ec280a13bd1 100644
--- a/lang/clang/distinfo
+++ b/lang/clang/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2013/07/02 10:33:02 adam Exp $
+$NetBSD: distinfo,v 1.21 2013/07/09 08:11:05 richard Exp $
SHA1 (cfe-3.3.src.tar.gz) = ccd6dbf2cdb1189a028b70bcb8a22509c25c74c8
RMD160 (cfe-3.3.src.tar.gz) = ff5d684c83b0c1aa36595dcb457da80b58eaf58f
@@ -9,5 +9,6 @@ Size (llvm-3.3.src.tar.gz) = 13602421 bytes
SHA1 (patch-ab) = 8dd0da6d47a57ac25eea358996cf874dd3289e08
SHA1 (patch-ac) = d94fdd7508302e6fb6acbf58f7b2305c3db5cf08
SHA1 (patch-ad) = ad1f6720e4c73e57fce10ba968b03637a133602d
+SHA1 (patch-include_llvm_Support_Host.h) = 102a76575b94f3d1b5fe0b138eb0ad54efd08b05
SHA1 (patch-utils_lit_utils_check-coverage) = aec7c140d5b9e8cc38a0022533a5848d6b1ff0b8
SHA1 (patch-utils_lit_utils_check-sdist) = df63c41b07f7531e787b54f6994458869023b66c
diff --git a/lang/clang/patches/patch-include_llvm_Support_Host.h b/lang/clang/patches/patch-include_llvm_Support_Host.h
new file mode 100644
index 00000000000..1970495c68f
--- /dev/null
+++ b/lang/clang/patches/patch-include_llvm_Support_Host.h
@@ -0,0 +1,28 @@
+$NetBSD: patch-include_llvm_Support_Host.h,v 1.1 2013/07/09 08:11:05 richard Exp $
+
+Fix lack of machine/endian.h on solaris
+http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
+
+--- include/llvm/Support/Host.h.orig 2013-04-15 20:13:59.000000000 +0000
++++ include/llvm/Support/Host.h
+@@ -18,6 +18,20 @@
+
+ #if defined(__linux__)
+ #include <endian.h>
++#elif defined(__sun) & defined(__SVR4)
++# ifndef BYTE_ORDER
++# define LITTLE_ENDIAN 1234
++# define BIG_ENDIAN 4321
++# if defined(__sun) & defined(__SVR4)
++# include <sys/isa_defs.h>
++# ifdef _LITTLE_ENDIAN
++# define BYTE_ORDER LITTLE_ENDIAN
++# endif
++# ifdef _BIG_ENDIAN
++# define BYTE_ORDER BIG_ENDIAN
++# endif
++# endif /* sun */
++# endif /* BYTE_ORDER */
+ #else
+ #ifndef LLVM_ON_WIN32
+ #include <machine/endian.h>