diff options
author | joerg <joerg@pkgsrc.org> | 2016-03-26 23:26:14 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-03-26 23:26:14 +0000 |
commit | fbb9029333c7a505d3f13410c5ed94a4c2174cc0 (patch) | |
tree | 8ad7c71c22291509a0f6d23dcade2348cac3f04e | |
parent | 981a2c080002f04bc18293c6706dedabf856970a (diff) | |
download | pkgsrc-fbb9029333c7a505d3f13410c5ed94a4c2174cc0.tar.gz |
Don't try to define max_align_t in C11 or C++11 mode.
-rw-r--r-- | devel/xulrunner10/distinfo | 3 | ||||
-rw-r--r-- | devel/xulrunner10/patches/patch-media_libnestegg_src_align.h | 14 | ||||
-rw-r--r-- | devel/xulrunner17/distinfo | 3 | ||||
-rw-r--r-- | devel/xulrunner17/patches/patch-media_libnestegg_src_align.h | 14 | ||||
-rw-r--r-- | editors/xemacs-current/distinfo | 3 | ||||
-rw-r--r-- | editors/xemacs-current/patches/patch-src_lisp.h | 20 | ||||
-rw-r--r-- | editors/xemacs/distinfo | 4 | ||||
-rw-r--r-- | editors/xemacs/patches/patch-src_lisp.h | 26 |
8 files changed, 71 insertions, 16 deletions
diff --git a/devel/xulrunner10/distinfo b/devel/xulrunner10/distinfo index c3c51d4793e..f0c8d3ccb45 100644 --- a/devel/xulrunner10/distinfo +++ b/devel/xulrunner10/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.18 2015/11/03 03:29:39 agc Exp $ +$NetBSD: distinfo,v 1.19 2016/03/26 23:26:14 joerg Exp $ SHA1 (firefox-10.0.12esr.source.tar.bz2) = d9086cabf06e04ef5200a8731288c0df27eb84d7 RMD160 (firefox-10.0.12esr.source.tar.bz2) = b112325fa37435d62e5e2737f2e87caf58f25b3c @@ -82,6 +82,7 @@ SHA1 (patch-ma) = 247368e8cd2a2ce6cb2d21a2ebd942dc5b410e7a SHA1 (patch-mb) = e2a63c095399de1f1dbd6abad08df09bbec446d7 SHA1 (patch-md) = aa4edf887d1b2cfb29e845fa514dd0867f78d6bb SHA1 (patch-me) = c88f67ceedfb910f83f5a13d1696736386d54c93 +SHA1 (patch-media_libnestegg_src_align.h) = 9d5b11be15a24435f45a44a3df59dfa6d55782a6 SHA1 (patch-media_libvpx_vpx__config.h) = e80d16bc127f4b06924e911aa60a74b2c533e73b SHA1 (patch-media_libvpx_vpx__config__c.c) = b099f480176225df5cc2f5776b35099dca0bbb4c SHA1 (patch-mf) = ab10485bd3f702ca0c5e2289342576193872abcf diff --git a/devel/xulrunner10/patches/patch-media_libnestegg_src_align.h b/devel/xulrunner10/patches/patch-media_libnestegg_src_align.h new file mode 100644 index 00000000000..95938cba622 --- /dev/null +++ b/devel/xulrunner10/patches/patch-media_libnestegg_src_align.h @@ -0,0 +1,14 @@ +$NetBSD: patch-media_libnestegg_src_align.h,v 1.1 2016/03/26 23:26:14 joerg Exp $ + +--- media/libnestegg/src/align.h.orig 2016-03-26 12:36:49.221957164 +0000 ++++ media/libnestegg/src/align.h +@@ -30,7 +30,9 @@ union max_align + void (*q)(void); + }; + ++#if (__STDC_VERSION__ - 0) < 201112L && (__cplusplus - 0) < 201103L + typedef union max_align max_align_t; ++#endif + + #endif + diff --git a/devel/xulrunner17/distinfo b/devel/xulrunner17/distinfo index c6e0149a73c..530fda60183 100644 --- a/devel/xulrunner17/distinfo +++ b/devel/xulrunner17/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.20 2016/01/20 22:14:13 ryoon Exp $ +$NetBSD: distinfo,v 1.21 2016/03/26 23:26:14 joerg Exp $ SHA1 (firefox-17.0.11esr.source.tar.bz2) = 593153bc2658be0bdf6d1361a079d4ce8fd516bd RMD160 (firefox-17.0.11esr.source.tar.bz2) = 9797f1553bf20008e62df2713a22c5844e7e3bdc @@ -83,6 +83,7 @@ SHA1 (patch-mb) = d1348344ad269df7008d857417551c594c9b9195 SHA1 (patch-md) = 1369069901aacaa47d76753772236fe159d42362 SHA1 (patch-me) = 93d5ef914cb00389cd5c2d92d228f47ec2436cb3 SHA1 (patch-media_libcubeb_src_Makefile.in) = a5026b121bca81043340104d331b6343953d5dc8 +SHA1 (patch-media_libnestegg_src_align.h) = 9d5b11be15a24435f45a44a3df59dfa6d55782a6 SHA1 (patch-media_libsydneyaudio_src_Makefile.in) = 7e55e41cdbcd193f57beb417e4b5c3511e8ddae0 SHA1 (patch-media_libsydneyaudio_src_sydney_audio_pulseaudio.c) = 75b828c074ccc71ff430795e2b044bebd8ff69eb SHA1 (patch-mf) = 6d314e67e9ad99c43faf0aea53dd67a77802ba8a diff --git a/devel/xulrunner17/patches/patch-media_libnestegg_src_align.h b/devel/xulrunner17/patches/patch-media_libnestegg_src_align.h new file mode 100644 index 00000000000..95938cba622 --- /dev/null +++ b/devel/xulrunner17/patches/patch-media_libnestegg_src_align.h @@ -0,0 +1,14 @@ +$NetBSD: patch-media_libnestegg_src_align.h,v 1.1 2016/03/26 23:26:14 joerg Exp $ + +--- media/libnestegg/src/align.h.orig 2016-03-26 12:36:49.221957164 +0000 ++++ media/libnestegg/src/align.h +@@ -30,7 +30,9 @@ union max_align + void (*q)(void); + }; + ++#if (__STDC_VERSION__ - 0) < 201112L && (__cplusplus - 0) < 201103L + typedef union max_align max_align_t; ++#endif + + #endif + diff --git a/editors/xemacs-current/distinfo b/editors/xemacs-current/distinfo index 4722fd497fb..65a96053ea2 100644 --- a/editors/xemacs-current/distinfo +++ b/editors/xemacs-current/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2016/01/29 15:46:48 joerg Exp $ +$NetBSD: distinfo,v 1.28 2016/03/26 23:26:14 joerg Exp $ SHA1 (xemacs-21.5.27.tar.gz) = 55fc3e9c8fe3cac92791ffe1a0870aeae1baf0b8 RMD160 (xemacs-21.5.27.tar.gz) = ee0caff8730c999d37aa3a19b19f23d5756837ad @@ -20,3 +20,4 @@ SHA1 (patch-am) = 0ccbead4be5da92e73a15432ff1b063da13cf0b4 SHA1 (patch-an) = f382865087f011ea3806d707cbf784fac81ad746 SHA1 (patch-src_config.h.in) = 8032e1a040b46131763d40e625a1b7e841f9b233 SHA1 (patch-src_glyphs-eimage.c) = a382113190a65d27747a90e58294a41f3bb6df42 +SHA1 (patch-src_lisp.h) = a99b2c3a25c5a20f654ca217234dc49b2424262d diff --git a/editors/xemacs-current/patches/patch-src_lisp.h b/editors/xemacs-current/patches/patch-src_lisp.h new file mode 100644 index 00000000000..3c1f09fef3e --- /dev/null +++ b/editors/xemacs-current/patches/patch-src_lisp.h @@ -0,0 +1,20 @@ +$NetBSD: patch-src_lisp.h,v 1.1 2016/03/26 23:26:14 joerg Exp $ + +--- src/lisp.h.orig 2016-03-26 13:47:05.129185443 +0000 ++++ src/lisp.h +@@ -957,6 +957,7 @@ typedef int Boolint; + + /* No type has a greater alignment requirement than max_align_t. + (except perhaps for types we don't use, like long double) */ ++#if (__STDC_VERSION__ - 0) < 201112L && (__cplusplus - 0) < 201103L + typedef union + { + struct { long l; } l; +@@ -964,6 +965,7 @@ typedef union + struct { void (*f)(void); } f; + struct { double d; } d; + } max_align_t; ++#endif + + /* ALIGNOF returns the required alignment of a type -- i.e. a value such + that data of this type must begin at a memory address which is a diff --git a/editors/xemacs/distinfo b/editors/xemacs/distinfo index 67bf8157eaf..ca02c20458b 100644 --- a/editors/xemacs/distinfo +++ b/editors/xemacs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2016/01/17 07:51:34 richard Exp $ +$NetBSD: distinfo,v 1.22 2016/03/26 23:26:14 joerg Exp $ SHA1 (xemacs/xemacs-21.4.23.tar.gz) = b57bc569cf8d376c1e2443b6ea1f40d30271e9a6 RMD160 (xemacs/xemacs-21.4.23.tar.gz) = 9df94c576b546a4df30c29ed3b5609ee816ad43c @@ -20,6 +20,6 @@ SHA1 (patch-src_Makefile.in.in) = 28098f18870c34165b37fe11e84cbd6f5584bc63 SHA1 (patch-src_config.h.in) = 9a031ace4ca6f89dacbf599484d9fcd410d7841f SHA1 (patch-src_dired.c) = 98f1c076c29385e3d5052cdb84d067f6cec8bc22 SHA1 (patch-src_glyphs-eimage.c) = ea561758dd454003eb3274508087fd302d9d9fd4 -SHA1 (patch-src_lisp.h) = 92f866c17745a3bf664c3c1153249f15fffb1866 +SHA1 (patch-src_lisp.h) = eb3247faef98f889cd6c95584395f97b1d29e2f7 SHA1 (patch-src_unexelf.c) = 738d09ea8a3d10b609e474b0efb8806d3e302bf9 SHA1 (patch-src_unexfreebsd.c) = 89ce80b21fa5d6cf8be98762183c6a8b0d8f71dd diff --git a/editors/xemacs/patches/patch-src_lisp.h b/editors/xemacs/patches/patch-src_lisp.h index 63e04f31d6a..c65f23ff525 100644 --- a/editors/xemacs/patches/patch-src_lisp.h +++ b/editors/xemacs/patches/patch-src_lisp.h @@ -1,16 +1,20 @@ -$NetBSD: patch-src_lisp.h,v 1.2 2015/02/04 09:19:20 hauke Exp $ +$NetBSD: patch-src_lisp.h,v 1.3 2016/03/26 23:26:14 joerg Exp $ ---- src/lisp.h.orig 2015-01-29 15:04:29.000000000 +0000 +--- src/lisp.h.orig 2016-03-26 15:03:47.482901440 +0000 +++ src/lisp.h -@@ -265,6 +265,11 @@ void assert_failed (const char *, int, c - /*#define REGISTER register*/ - /*#endif*/ +@@ -195,6 +195,7 @@ void xfree (void *); -+#if SIZEOF_LONG == 8 -+#define UINT_64_BIT unsigned long -+#elif SIZEOF_LONG_LONG == 8 -+#define UINT_64_BIT unsigned long long + /* No type has a greater alignment requirement than max_align_t. + (except perhaps for types we don't use, like long double) */ ++#if (__STDC_VERSION__ - 0) < 201112L && (__cplusplus - 0) < 201103L + typedef union + { + struct { long l; } l; +@@ -202,6 +203,7 @@ typedef union + struct { void (*f)(void); } f; + struct { double d; } d; + } max_align_t; +#endif - /* EMACS_INT is the underlying integral type into which a Lisp_Object must fit. - In particular, it must be large enough to contain a pointer. + #ifndef ALIGNOF + # if defined (__GNUC__) && (__GNUC__ >= 2) |