From: Wouter Wijngaards Date: Fri, 20 Feb 2015 13:55:09 +0000 (+0000) Subject: - Portability to Solaris 10, use AF_LOCAL. X-Git-Tag: release-1.5.3rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=679f545d0843b640bb0d2e532e202ef7724675a1;p=thirdparty%2Funbound.git - Portability to Solaris 10, use AF_LOCAL. git-svn-id: file:///svn/unbound/trunk@3339 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 41fdab268..34985648d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 20 February 2015: Wouter - Use the getrandom syscall introduced in Linux 3.17 (from Heiner Kallweit). + - Portability to Solaris 10, use AF_LOCAL. 19 February 2015: Wouter - 1.5.2 release tag. diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 1addfa901..3e5bf4004 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -609,7 +609,7 @@ create_local_accept_sock(const char *path, int* noproto) /* length is 92-108, 104 on FreeBSD */ (void)strlcpy(usock.sun_path, path, sizeof(usock.sun_path)); - if ((s = socket(PF_LOCAL, SOCK_STREAM, 0)) == -1) { + if ((s = socket(AF_LOCAL, SOCK_STREAM, 0)) == -1) { log_err("Cannot create local socket %s (%s)", path, strerror(errno)); return -1;