mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Make some #ifdef guards actually use the symbol they're guarding.
This commit is contained in:
parent
8e5bc1e26e
commit
7cd9a0f2d2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue