Date: Tue, 27 Jun 2017 15:00:46 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444466 - head/www/libxul/files Message-ID: <201706271500.v5RF0kLC058219@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Tue Jun 27 15:00:45 2017 New Revision: 444466 URL: https://svnweb.freebsd.org/changeset/ports/444466 Log: 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 Added: head/www/libxul/files/patch-bug1267513 (contents, props changed) Added: head/www/libxul/files/patch-bug1267513 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/libxul/files/patch-bug1267513 Tue Jun 27 15:00:45 2017 (r444466) @@ -0,0 +1,24 @@ +commit 3b7f1ae5dfd5 +Author: Matt Brubeck <mbrubeck@limpet.net> +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706271500.v5RF0kLC058219>