Make Slirp statistics gathering and output conditional to LOG_ENABLED
[qemu] / slirp / icmp_var.h
index 03fc8c3..cd865b7 100644 (file)
@@ -64,6 +64,8 @@ struct icmpstat {
        { "stats", CTLTYPE_STRUCT }, \
 }
 
+#ifdef LOG_ENABLED
 extern struct icmpstat icmpstat;
+#endif
 
 #endif