summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-12-01 11:13:37 +0000
committernia <nia@pkgsrc.org>2020-12-01 11:13:37 +0000
commitb96bfdb5a1b4ea581960d9a2be70d602296873f1 (patch)
treebd4c8cca4646b71774bcac2fdf6d32d665b5102e /devel
parente1f2bdf24616b07b74fd928087a8ca3882b82fcb (diff)
downloadpkgsrc-b96bfdb5a1b4ea581960d9a2be70d602296873f1.tar.gz
ucl: Fix building with gcc >= 6.
Diffstat (limited to 'devel')
-rw-r--r--devel/ucl/distinfo3
-rw-r--r--devel/ucl/patches/patch-acc_acc__defs.h30
2 files changed, 32 insertions, 1 deletions
diff --git a/devel/ucl/distinfo b/devel/ucl/distinfo
index 24f8f503aaf..7db570e2bda 100644
--- a/devel/ucl/distinfo
+++ b/devel/ucl/distinfo
@@ -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 --git a/devel/ucl/patches/patch-acc_acc__defs.h b/devel/ucl/patches/patch-acc_acc__defs.h
new file mode 100644
index 00000000000..6d79e295c10
--- /dev/null
+++ b/devel/ucl/patches/patch-acc_acc__defs.h
@@ -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)];}