aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcpreplay/musl-socklen_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tcpreplay/musl-socklen_t.patch')
-rw-r--r--testing/tcpreplay/musl-socklen_t.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/tcpreplay/musl-socklen_t.patch b/testing/tcpreplay/musl-socklen_t.patch
new file mode 100644
index 0000000000..b4afb34040
--- /dev/null
+++ b/testing/tcpreplay/musl-socklen_t.patch
@@ -0,0 +1,13 @@
+--- ./src/common/sendpacket.c.orig
++++ ./src/common/sendpacket.c
+@@ -166,10 +166,6 @@
+ #include "txring.h"
+ #endif
+
+-#ifndef __GLIBC__
+-typedef int socklen_t;
+-#endif
+-
+ static sendpacket_t *sendpacket_open_pf(const char *, char *);
+ static struct tcpr_ether_addr *sendpacket_get_hwaddr_pf(sendpacket_t *);
+ static int get_iface_index(int fd, const char *device, char *);