diff options
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r-- | src/test/test_address.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c index 9c88d37a41..0dd7b40334 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -11,8 +11,11 @@ #include <iphlpapi.h> #endif -#ifdef HAVE_IFADDRS_TO_SMARTLIST +#ifdef HAVE_NET_IF_H #include <net/if.h> +#endif + +#ifdef HAVE_IFADDRS_TO_SMARTLIST #include <ifaddrs.h> #endif @@ -20,7 +23,6 @@ #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif -#include <net/if.h> #endif /* defined(HAVE_IFCONF_TO_SMARTLIST) */ #include "or.h" |