From 4517932e14fea18d2a787633feda3ed52f2d5ccd Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 27 Jun 2017 15:00:45 +0000 Subject: www/libxul: unbreak on 12.0 after r320240 cc -o Unified_c_media_libnestegg_src0.o -c ... -std=gnu99 ... Unified_c_media_libnestegg_src0.c In file included from obj-i386-unknown-freebsd12.0/media/libnestegg/src/Unified_c_media_libnestegg_src0.c:2: In file included from media/libnestegg/src/halloc.c:19: media/libnestegg/src/align.h:42:25: error: typedef redefinition with different types ('union max_align' vs '__max_align_t') typedef union max_align max_align_t; ^ /usr/include/stddef.h:67:23: note: previous definition is here typedef __max_align_t max_align_t; ^ 1 error generated. Reported by: pkg-fallout --- www/libxul/files/patch-bug1267513 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 www/libxul/files/patch-bug1267513 (limited to 'www/libxul/files/patch-bug1267513') diff --git a/www/libxul/files/patch-bug1267513 b/www/libxul/files/patch-bug1267513 new file mode 100644 index 000000000000..e3666e476a82 --- /dev/null +++ b/www/libxul/files/patch-bug1267513 @@ -0,0 +1,24 @@ +commit 3b7f1ae5dfd5 +Author: Matt Brubeck +Date: Mon Apr 25 09:33:12 2016 -0700 + + Don't redefine max_align_t if defined by GCC or Clang + + Fixes "conflicting types" error when building with `-std=c11`. +--- + halloc/src/align.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git media/libnestegg/src/align.h media/libnestegg/src/align.h +index 58c82b4354ff..1753b504fc2b 100644 +--- media/libnestegg/src/align.h ++++ media/libnestegg/src/align.h +@@ -22,7 +22,7 @@ + */ + typedef double max_align_t; + +-#else ++#elif !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) + + /* + * a type with the most strict alignment requirements -- cgit v1.2.3