1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

Make some #ifdef guards actually use the symbol they're guarding.

This commit is contained in:
david
2012-04-20 23:57:43 +00:00
parent 8e5bc1e26e
commit 7cd9a0f2d2

View File

@@ -414,7 +414,7 @@ _intf_get_noalias(intf_t *intf, struct intf_entry *entry)
_intf_set_type(entry);
/* Get interface MTU. */
#ifdef SIOCSIFMTU
#ifdef SIOCGLIFMTU
if (ioctl(intf->fd, SIOCGLIFMTU, &lifr) < 0)
#endif
return (-1);
@@ -473,7 +473,7 @@ _intf_get_noalias(intf_t *intf, struct intf_entry *entry)
_intf_set_type(entry);
/* Get interface MTU. */
#ifdef SIOCSIFMTU
#ifdef SIOCGIFMTU
if (ioctl(intf->fd, SIOCGIFMTU, &ifr) < 0)
#endif
return (-1);