heimdal: don't include <ifaddrs.h> without knowing it's there
authorBjörn Jacke <bj@sernet.de>
Fri, 3 Jul 2009 17:13:08 +0000 (19:13 +0200)
committerBjörn Jacke <bj@sernet.de>
Fri, 3 Jul 2009 17:13:08 +0000 (19:13 +0200)
this is 73dbbe0d54 re-added. abartlet, please pick this to lorikeet.

source4/heimdal/lib/krb5/get_addrs.c

index 8f366fa1487dc7d9ea3eebb5be5936c88c54cdff..96571af531a9f5ac577264dda5f118fcd2eaf015 100644 (file)
@@ -41,7 +41,9 @@ struct mbuf;
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
+#ifdef HAVE_IFADDR_H
 #include <ifaddrs.h>
+#endif
 
 static krb5_error_code
 gethostname_fallback (krb5_context context, krb5_addresses *res)