vde-2.2.2-gcc53.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --- src/slirpvde/misc.c 2016-01-02 22:54:35.746094904 -0500
  2. +++ src/slirpvde/misc.c.old 2016-01-02 22:54:33.152132668 -0500
  3. @@ -120,11 +120,15 @@ getouraddr()
  4. struct quehead_32 {
  5. u_int32_t qh_link;
  6. u_int32_t qh_rlink;
  7. };
  8. +#ifdef __GNUC_GNU_INLINE__
  9. inline void
  10. +#else
  11. +extern inline void
  12. +#endif
  13. insque_32(a, b)
  14. void *a;
  15. void *b;
  16. {
  17. register struct quehead_32 *element = (struct quehead_32 *) a;
  18. @@ -134,11 +134,15 @@ insque_32(a, b)
  19. element->qh_rlink = (u_int32_t)head;
  20. ((struct quehead_32 *)(element->qh_link))->qh_rlink
  21. = (u_int32_t)element;
  22. }
  23. +#ifdef __GNUC_GNU_INLINE__
  24. inline void
  25. +#else
  26. +extern inline void
  27. +#endif
  28. remque_32(void *a)
  29. {
  30. register struct quehead_32 *element = (struct quehead_32 *) a;
  31. ((struct quehead_32 *)(element->qh_link))->qh_rlink = element->qh_rlink;
  32. ((struct quehead_32 *)(element->qh_rlink))->qh_link = element->qh_link;
  33. @@ -150,11 +150,15 @@ remque_32(void *a)
  34. struct quehead {
  35. struct quehead *qh_link;
  36. struct quehead *qh_rlink;
  37. };
  38. +#ifdef __GNUC_GNU_INLINE__
  39. inline void
  40. +#else
  41. +extern inline void
  42. +#endif
  43. insque(a, b)
  44. void *a, *b;
  45. {
  46. register struct quehead *element = (struct quehead *) a;
  47. register struct quehead *head = (struct quehead *) b;
  48. @@ -163,11 +163,15 @@ insque(a, b)
  49. element->qh_rlink = (struct quehead *)head;
  50. ((struct quehead *)(element->qh_link))->qh_rlink
  51. = (struct quehead *)element;
  52. }
  53. +#ifdef __GNUC_GNU_INLINE__
  54. inline void
  55. +#else
  56. +extern inline void
  57. +#endif
  58. remque(a)
  59. void *a;
  60. {
  61. register struct quehead *element = (struct quehead *) a;
  62. ((struct quehead *)(element->qh_link))->qh_rlink = element->qh_rlink;