aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libvpx/files
diff options
context:
space:
mode:
authorashish <ashish@FreeBSD.org>2015-02-15 22:12:19 +0800
committerashish <ashish@FreeBSD.org>2015-02-15 22:12:19 +0800
commit42d2b7b10062eb9f76c7052197d91e73a1d377a9 (patch)
treebf7785cc9b28d1764b3da5ec2f66770489924b90 /multimedia/libvpx/files
parent667530d416241df8964f1cba7fb48d374821a034 (diff)
downloadfreebsd-ports-gnome-42d2b7b10062eb9f76c7052197d91e73a1d377a9.tar.gz
freebsd-ports-gnome-42d2b7b10062eb9f76c7052197d91e73a1d377a9.tar.zst
freebsd-ports-gnome-42d2b7b10062eb9f76c7052197d91e73a1d377a9.zip
- Fix build with GCC 5
PR: 197624 Submitted by: marino
Diffstat (limited to 'multimedia/libvpx/files')
-rw-r--r--multimedia/libvpx/files/patch-nestegg_halloc_src31
1 files changed, 31 insertions, 0 deletions
diff --git a/multimedia/libvpx/files/patch-nestegg_halloc_src b/multimedia/libvpx/files/patch-nestegg_halloc_src
new file mode 100644
index 000000000000..cfe19e7c7e36
--- /dev/null
+++ b/multimedia/libvpx/files/patch-nestegg_halloc_src
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+Fix build on modern gcc which defines max_align_t for C11
+It renames the locale definition to avoid the name clash.
+
+--- nestegg/halloc/src/align.h.orig
++++ nestegg/halloc/src/align.h
+@@ -30,7 +30,7 @@
+ void (*q)(void);
+ };
+
+-typedef union max_align max_align_t;
++typedef union max_align halloc_max_align_t;
+
+ #endif
+
+
+$FreeBSD$
+
+--- nestegg/halloc/src/halloc.c.orig
++++ nestegg/halloc/src/halloc.c
+@@ -30,7 +30,7 @@
+ #endif
+ hlist_item_t siblings; /* 2 pointers */
+ hlist_head_t children; /* 1 pointer */
+- max_align_t data[1]; /* not allocated, see below */
++ halloc_max_align_t data[1]; /* not allocated, see below */
+
+ } hblock_t;
+