]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
SLL2: Translate interface indices to names on Linux only.
[tcpdump] / tcpdump.c
index e4c52c5e4f301890bf14a367a3aab81db7118879..51480dce4f5e6eb374a89dedfb2a83ece42de56c 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2166,7 +2166,7 @@ main(int argc, char **argv)
                                pcap_datalink_val_to_description(dlt));
                }
                fprintf(stderr, ", snapshot length %d\n", pcap_snapshot(pd));
-#ifdef DLT_LINUX_SLL2
+#if defined(DLT_LINUX_SLL2) && defined(__linux__)
                if (dlt == DLT_LINUX_SLL2)
                        fprintf(stderr, "Warning: interface names might be incorrect\n");
 #endif