diff options
-rwxr-xr-x | compat/getifaddrs.c | 3 | ||||
-rwxr-xr-x | compat/ifaddrs.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/compat/getifaddrs.c b/compat/getifaddrs.c index 971a9d28..8acd4840 100755 --- a/compat/getifaddrs.c +++ b/compat/getifaddrs.c @@ -1,3 +1,5 @@ +#include "config.h" +#ifndef HAVE_GETIFADDRS /* * CDDL HEADER START * @@ -23,7 +25,6 @@ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. */ -#ifndef HAVE_GETIFADDRS #include <netdb.h> #include <nss_dbdefs.h> #include <netinet/in.h> diff --git a/compat/ifaddrs.h b/compat/ifaddrs.h index 4202b609..ec359c13 100755 --- a/compat/ifaddrs.h +++ b/compat/ifaddrs.h @@ -1,3 +1,5 @@ +#include "config.h" +#ifndef HAVE_GETIFADDRS /* * CDDL HEADER START * @@ -84,3 +86,4 @@ extern void freeifaddrs(struct ifaddrs *); #endif #endif /* _IFADDRS_H */ +#endif /* HAVE_GETIFADDRS */ |