summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ring.h b/ring.h
index 3b02c76..afc8b08 100644
--- a/ring.h
+++ b/ring.h
@@ -145,6 +145,10 @@ static inline void set_sockopt_tpacket_v3(int sock)
{
__set_sockopt_tpacket(sock, TPACKET_V3);
}
+#else
+static inline void set_sockopt_tpacket_v3(int sock __maybe_unused)
+{
+}
#endif
static inline int get_sockopt_tpacket(int sock)