summaryrefslogtreecommitdiff
path: root/patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch')
-rw-r--r--patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch b/patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch
new file mode 100644
index 0000000..3098f80
--- /dev/null
+++ b/patches/strace/4.5.16/500-undef-PACKET_MEMBERSHIP.patch
@@ -0,0 +1,16 @@
+diff -dur strace-4.5.16.orig/net.c strace-4.5.16/net.c
+--- strace-4.5.16.orig/net.c 2006-12-13 20:57:23.000000000 +0100
++++ strace-4.5.16/net.c 2007-07-14 19:29:36.000000000 +0200
+@@ -800,8 +800,12 @@
+
+ #ifdef SOL_PACKET
+ static const struct xlat sockpacketoptions[] = {
++#if defined(PACKET_ADD_MEMBERSHIP)
+ { PACKET_ADD_MEMBERSHIP, "PACKET_ADD_MEMBERSHIP" },
++#endif
++#if defined(PACKET_DROP_MEMBERSHIP)
+ { PACKET_DROP_MEMBERSHIP, "PACKET_DROP_MEMBERSHIP"},
++#endif
+ #if defined(PACKET_RECV_OUTPUT)
+ { PACKET_RECV_OUTPUT, "PACKET_RECV_OUTPUT" },
+ #endif