pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libcxx-netbsd: Handle NetBSD max_align_t



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Jun 8 11:29:54 2018 +0200
Changeset:	5104e3c37685830302e29e7359c04a31350f3f97

Modified Files:
	libcxx-netbsd/distinfo
Added Files:
	libcxx-netbsd/patches/patch-include_cstddef
	libcxx-netbsd/patches/patch-include_stddef.h

Log Message:
libcxx-netbsd: Handle NetBSD max_align_t

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5104e3c37685830302e29e7359c04a31350f3f97

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libcxx-netbsd/distinfo                       |  2 ++
 libcxx-netbsd/patches/patch-include_cstddef  | 13 +++++++++++++
 libcxx-netbsd/patches/patch-include_stddef.h | 13 +++++++++++++
 3 files changed, 28 insertions(+)

diffs:
diff --git a/libcxx-netbsd/distinfo b/libcxx-netbsd/distinfo
index 7931384fd5..dcfd9f0c43 100644
--- a/libcxx-netbsd/distinfo
+++ b/libcxx-netbsd/distinfo
@@ -12,3 +12,5 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-include_cstddef) = bb7a7ff5257f3ce6c53ae0c32f3d76166d6157e5
+SHA1 (patch-include_stddef.h) = 573fcd22ee3bcf120dc4aea2bd2cec285b8abfcb
diff --git a/libcxx-netbsd/patches/patch-include_cstddef b/libcxx-netbsd/patches/patch-include_cstddef
new file mode 100644
index 0000000000..1414a17e0e
--- /dev/null
+++ b/libcxx-netbsd/patches/patch-include_cstddef
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- include/cstddef.orig	2018-06-07 17:11:08.000000000 +0000
++++ include/cstddef
+@@ -50,7 +50,7 @@ using ::ptrdiff_t;
+ using ::size_t;
+ 
+ #if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T) || \
+-    defined(__DEFINED_max_align_t)
++    defined(__DEFINED_max_align_t) || defined(__NetBSD__)
+ // Re-use the compiler's <stddef.h> max_align_t where possible.
+ using ::max_align_t;
+ #else
diff --git a/libcxx-netbsd/patches/patch-include_stddef.h b/libcxx-netbsd/patches/patch-include_stddef.h
new file mode 100644
index 0000000000..664c3931da
--- /dev/null
+++ b/libcxx-netbsd/patches/patch-include_stddef.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- include/stddef.h.orig	2018-06-07 17:11:08.000000000 +0000
++++ include/stddef.h
+@@ -54,7 +54,7 @@ using std::nullptr_t;
+ 
+ // Re-use the compiler's <stddef.h> max_align_t where possible.
+ #if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) && \
+-    !defined(__DEFINED_max_align_t)
++    !defined(__DEFINED_max_align_t) && !defined(__NetBSD__)
+ typedef long double max_align_t;
+ #endif
+ 


Home | Main Index | Thread Index | Old Index