]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Portability to Solaris 10, use AF_LOCAL.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Feb 2015 13:55:09 +0000 (13:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Feb 2015 13:55:09 +0000 (13:55 +0000)
git-svn-id: file:///svn/unbound/trunk@3339 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/listen_dnsport.c

index 41fdab26837581ff513cff0bed1e8b03c14c5f6a..34985648d4313b83759dc686ccd2890b2f565604 100644 (file)
@@ -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.
index 1addfa901dbb0d0a20d9d6c275350f04491e465f..3e5bf40044485fad76347ca091f7f9b7ad77d4da 100644 (file)
@@ -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;