slirp: fix linkage

This commit is contained in:
David Hrdlička
2020-12-16 20:40:41 +01:00
parent 7c76b94821
commit 5699215ff5

View File

@@ -8,7 +8,7 @@
#include <sys/un.h> #include <sys/un.h>
#endif #endif
inline void insque(void *a, void *b) extern inline void insque(void *a, void *b)
{ {
register struct quehead *element = (struct quehead *)a; register struct quehead *element = (struct quehead *)a;
register struct quehead *head = (struct quehead *)b; register struct quehead *head = (struct quehead *)b;
@@ -19,7 +19,7 @@ inline void insque(void *a, void *b)
(struct quehead *)element; (struct quehead *)element;
} }
inline void remque(void *a) extern inline void remque(void *a)
{ {
register struct quehead *element = (struct quehead *)a; register struct quehead *element = (struct quehead *)a;
((struct quehead *)(element->qh_link))->qh_rlink = element->qh_rlink; ((struct quehead *)(element->qh_link))->qh_rlink = element->qh_rlink;