aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libvpx/files
diff options
context:
space:
mode:
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;
+