2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

only look for sys/socket.h if we also have sys/un.h

This commit is contained in:
Mark Andrews
2011-01-13 07:05:57 +00:00
parent 93b81c6d0a
commit 559b51e980

View File

@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: ssu_external.c,v 1.6 2011/01/13 06:41:05 marka Exp $ */ /* $Id: ssu_external.c,v 1.7 2011/01/13 07:05:57 marka Exp $ */
/* /*
* This implements external update-policy rules. This allows permission * This implements external update-policy rules. This allows permission
@@ -25,8 +25,9 @@
#include <config.h> #include <config.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h>
#ifdef ISC_PLATFORM_HAVESYSUNH #ifdef ISC_PLATFORM_HAVESYSUNH
#include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
#endif #endif
@@ -143,7 +144,8 @@ dns_ssu_external_match(dns_name_t *identity,
/* For now only local: is supported */ /* For now only local: is supported */
if (strncmp(b_identity, "local:", 6) != 0) { if (strncmp(b_identity, "local:", 6) != 0) {
ssu_e_log(3, "ssu_external: invalid socket path '%s'", buf); ssu_e_log(3, "ssu_external: invalid socket path '%s'",
b_identity);
return (ISC_FALSE); return (ISC_FALSE);
} }
sock_path = &b_identity[6]; sock_path = &b_identity[6];