aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2015-02-15 14:12:19 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2015-02-15 14:12:19 +0000
commit611b9a7a82d644bf62a351f346cfe7757f1b1442 (patch)
treebf7785cc9b28d1764b3da5ec2f66770489924b90 /multimedia/libvpx
parent0affa18976f0c0a8e93bb74737f6c75395dbd7ce (diff)
downloadports-611b9a7a82d644bf62a351f346cfe7757f1b1442.tar.gz
ports-611b9a7a82d644bf62a351f346cfe7757f1b1442.zip
- Fix build with GCC 5
PR: 197624 Submitted by: marino
Notes
Notes: svn path=/head/; revision=379037
Diffstat (limited to 'multimedia/libvpx')
-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;
+