From 9aae6d6d40db972525393154b3b33f0bd793e513 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 13 Dec 2016 17:18:27 +0100 Subject: [PATCH] ucl: fix build on gcc6. --- srcpkgs/ucl/patches/gcc6.patch | 22 ++++++++++++++++++++++ srcpkgs/ucl/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ucl/patches/gcc6.patch diff --git a/srcpkgs/ucl/patches/gcc6.patch b/srcpkgs/ucl/patches/gcc6.patch new file mode 100644 index 0000000000..df24cb8e4f --- /dev/null +++ b/srcpkgs/ucl/patches/gcc6.patch @@ -0,0 +1,22 @@ +--- acc/acc_defs.h ++++ acc/acc_defs.h +@@ -87,6 +87,9 @@ + + /* This can be put into a header file but may get ignored by some compilers. */ + #if !defined(ACC_COMPILE_TIME_ASSERT_HEADER) ++# define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e); ++#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)]; + # elif (ACC_CC_DMC || ACC_CC_SYMANTECC) +@@ -100,6 +103,9 @@ + + /* This must appear within a function body. */ + #if !defined(ACC_COMPILE_TIME_ASSERT) ++# define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e); ++#endif ++#if !defined(ACC_COMPILE_TIME_ASSERT) + # if (ACC_CC_AZTECC) + # define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];} + # elif (ACC_CC_DMC || ACC_CC_PACIFICC || ACC_CC_SYMANTECC || ACC_CC_ZORTECHC) diff --git a/srcpkgs/ucl/template b/srcpkgs/ucl/template index ed814f5b74..2d44af9c1a 100644 --- a/srcpkgs/ucl/template +++ b/srcpkgs/ucl/template @@ -1,7 +1,7 @@ # Template file for 'ucl' pkgname=ucl version=1.03 -revision=4 +revision=5 conflicts="libucl-devel>=0" build_style=gnu-configure short_desc="Portable lossless data compression library written in ANSI C"