summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2016-01-02 23:15:50 -0500
committerIan Delaney <idella4@gentoo.org>2016-01-03 16:39:29 +0800
commit8efc88270606d78f64045fff6c70583e5052230e (patch)
treef1ecb4c4d6ea39e709b1285be02cb5c063d91930 /net-misc/vde/files
parentnet-misc/vde: Added myself as co-maintainer (diff)
downloadgentoo-8efc88270606d78f64045fff6c70583e5052230e.tar.gz
gentoo-8efc88270606d78f64045fff6c70583e5052230e.tar.bz2
gentoo-8efc88270606d78f64045fff6c70583e5052230e.zip
net-misc/vde: Fix for bug #543006
Added vde-2.2.2-gcc53.patch. Starting with GCC 5, GCC uses Std. C semantics for inline kewords instead of non-compliant GNU C semantics. This patch corrects the source with respect to the semantic difference. Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/vde/files')
-rw-r--r--net-misc/vde/files/vde-2.2.2-gcc53.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/vde/files/vde-2.2.2-gcc53.patch b/net-misc/vde/files/vde-2.2.2-gcc53.patch
new file mode 100644
index 000000000000..60fb98cc9a8d
--- /dev/null
+++ b/net-misc/vde/files/vde-2.2.2-gcc53.patch
@@ -0,0 +1,66 @@
+--- src/slirpvde/misc.c 2016-01-02 22:54:35.746094904 -0500
++++ src/slirpvde/misc.c.old 2016-01-02 22:54:33.152132668 -0500
+@@ -120,11 +120,15 @@ getouraddr()
+ struct quehead_32 {
+ u_int32_t qh_link;
+ u_int32_t qh_rlink;
+ };
+
++#ifdef __GNUC_GNU_INLINE__
+ inline void
++#else
++extern inline void
++#endif
+ insque_32(a, b)
+ void *a;
+ void *b;
+ {
+ register struct quehead_32 *element = (struct quehead_32 *) a;
+@@ -134,11 +134,15 @@ insque_32(a, b)
+ element->qh_rlink = (u_int32_t)head;
+ ((struct quehead_32 *)(element->qh_link))->qh_rlink
+ = (u_int32_t)element;
+ }
+
++#ifdef __GNUC_GNU_INLINE__
+ inline void
++#else
++extern inline void
++#endif
+ remque_32(void *a)
+ {
+ register struct quehead_32 *element = (struct quehead_32 *) a;
+ ((struct quehead_32 *)(element->qh_link))->qh_rlink = element->qh_rlink;
+ ((struct quehead_32 *)(element->qh_rlink))->qh_link = element->qh_link;
+@@ -150,11 +150,15 @@ remque_32(void *a)
+ struct quehead {
+ struct quehead *qh_link;
+ struct quehead *qh_rlink;
+ };
+
++#ifdef __GNUC_GNU_INLINE__
+ inline void
++#else
++extern inline void
++#endif
+ insque(a, b)
+ void *a, *b;
+ {
+ register struct quehead *element = (struct quehead *) a;
+ register struct quehead *head = (struct quehead *) b;
+@@ -163,11 +163,15 @@ insque(a, b)
+ element->qh_rlink = (struct quehead *)head;
+ ((struct quehead *)(element->qh_link))->qh_rlink
+ = (struct quehead *)element;
+ }
+
++#ifdef __GNUC_GNU_INLINE__
+ inline void
++#else
++extern inline void
++#endif
+ remque(a)
+ void *a;
+ {
+ register struct quehead *element = (struct quehead *) a;
+ ((struct quehead *)(element->qh_link))->qh_rlink = element->qh_rlink;