pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ucl ucl: Fix building with gcc >= 6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b82207dbec6d
branches:  trunk
changeset: 442822:b82207dbec6d
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Dec 01 11:13:37 2020 +0000

description:
ucl: Fix building with gcc >= 6.

diffstat:

 devel/ucl/distinfo                      |   3 ++-
 devel/ucl/patches/patch-acc_acc__defs.h |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r b41b289ac5d0 -r b82207dbec6d devel/ucl/distinfo
--- a/devel/ucl/distinfo        Tue Dec 01 11:09:18 2020 +0000
+++ b/devel/ucl/distinfo        Tue Dec 01 11:13:37 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2015/11/04 17:41:18 agc Exp $
+$NetBSD: distinfo,v 1.8 2020/12/01 11:13:37 nia Exp $
 
 SHA1 (ucl-1.03.tar.gz) = 5847003d136fbbca1334dd5de10554c76c755f7c
 RMD160 (ucl-1.03.tar.gz) = d1b50127d482481c125eabff9a9c157d491c4a6a
 SHA512 (ucl-1.03.tar.gz) = 7dd1824d01b4bb41ee03bbceddc634a9f7f910d235e5cca163d783680d6743f0f3cc309bbbcc1e094d897d549d3805a555f9093b4d77805443d896dd1862aa34
 Size (ucl-1.03.tar.gz) = 534881 bytes
+SHA1 (patch-acc_acc__defs.h) = c2327d1346350e418856c5e162de2bf235f9dca7
diff -r b41b289ac5d0 -r b82207dbec6d devel/ucl/patches/patch-acc_acc__defs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ucl/patches/patch-acc_acc__defs.h   Tue Dec 01 11:13:37 2020 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-acc_acc__defs.h,v 1.1 2020/12/01 11:13:38 nia Exp $
+
+Fix build with gcc >= 6.
+
+--- acc/acc_defs.h.orig        2004-07-19 23:01:47.000000000 +0000
++++ acc/acc_defs.h
+@@ -86,6 +86,11 @@
+ ************************************************************************/
+ 
+ /* This can be put into a header file but may get ignored by some compilers. */
++#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) && defined(__STDC_VERSION__)
++#  if __STDC_VERSION__ >= 201112L
++#    define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e);
++#  endif
++#endif
+ #if !defined(ACC_COMPILE_TIME_ASSERT_HEADER)
+ #  if (ACC_CC_AZTECC || ACC_CC_ZORTECHC)
+ #    define ACC_COMPILE_TIME_ASSERT_HEADER(e)  extern int __acc_cta[1-!(e)];
+@@ -99,6 +104,11 @@
+ #endif
+ 
+ /* This must appear within a function body. */
++#if !defined(ACC_COMPILE_TIME_ASSERT) && defined(__STDC_VERSION__)
++#  if __STDC_VERSION__ >= 201112L
++#    define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e);
++#  endif
++#endif
+ #if !defined(ACC_COMPILE_TIME_ASSERT)
+ #  if (ACC_CC_AZTECC)
+ #    define ACC_COMPILE_TIME_ASSERT(e)  {typedef int __acc_cta_t[1-!(e)];}



Home | Main Index | Thread Index | Old Index