From d8ad54907ce4e751fdba2c26a819d805f3dd8ef1 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 12 Jun 2008 01:45:06 +0000 Subject: [PATCH] Protect the WINDEVICE output code with #ifdef WIN32. --- output.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/output.cc b/output.cc index 30f133802..8597281fc 100644 --- a/output.cc +++ b/output.cc @@ -337,7 +337,8 @@ int print_iflist(void) { log_flush_all(); delete Tbl; } - + +#ifdef WIN32 if (numifs > 0) { /* Display the mapping from libdnet interface names (like "eth0") to WinPcap interface names (like "\Device\NPF_{...}"). This is the same @@ -360,6 +361,7 @@ int print_iflist(void) { log_write(LOG_PLAIN, "%s\n", Tbl.printableTable(NULL)); log_flush_all(); } +#endif /* OK -- time to handle routes */ routes = getsysroutes(&numroutes);