1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00

Protect the WINDEVICE output code with #ifdef WIN32.

This commit is contained in:
david
2008-06-12 01:45:06 +00:00
parent 0101e9e0ab
commit d8ad54907c

View File

@@ -338,6 +338,7 @@ int print_iflist(void) {
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);