]> granicus.if.org Git - strace/commitdiff
2007-11-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 1 Nov 2007 21:37:33 +0000 (21:37 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 1 Nov 2007 21:37:33 +0000 (21:37 +0000)
* net.c (sockpacketoptions): Make PACKET_ADD_MEMBERSHIP and
PACKET_DROP_MEMBERSHIP conditional.
From Bernhard Fischer <rep.dot.nop@gmail.com>.

net.c

diff --git a/net.c b/net.c
index 391002396dff4785d672dd5bea0c174fc42edefd..a0ae6b94f99de696c27852b04fbfb7ae8b42372a 100644 (file)
--- a/net.c
+++ b/net.c
@@ -803,8 +803,12 @@ static const struct xlat sockrawoptions[] = {
 
 #ifdef SOL_PACKET
 static const struct xlat sockpacketoptions[] = {
+#ifdef PACKET_ADD_MEMBERSHIP
        { PACKET_ADD_MEMBERSHIP,        "PACKET_ADD_MEMBERSHIP" },
+#endif
+#ifdef PACKET_DROP_MEMBERSHIP
        { PACKET_DROP_MEMBERSHIP,       "PACKET_DROP_MEMBERSHIP"},
+#endif
 #if defined(PACKET_RECV_OUTPUT)
        { PACKET_RECV_OUTPUT,           "PACKET_RECV_OUTPUT"    },
 #endif