mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Portability to Solaris 10, use AF_LOCAL.
git-svn-id: file:///svn/unbound/trunk@3339 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
160dd56c4a
commit
679f545d08
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
20 February 2015: Wouter
|
20 February 2015: Wouter
|
||||||
- Use the getrandom syscall introduced in Linux 3.17 (from Heiner
|
- Use the getrandom syscall introduced in Linux 3.17 (from Heiner
|
||||||
Kallweit).
|
Kallweit).
|
||||||
|
- Portability to Solaris 10, use AF_LOCAL.
|
||||||
|
|
||||||
19 February 2015: Wouter
|
19 February 2015: Wouter
|
||||||
- 1.5.2 release tag.
|
- 1.5.2 release tag.
|
||||||
|
|
|
||||||
|
|
@ -609,7 +609,7 @@ create_local_accept_sock(const char *path, int* noproto)
|
||||||
/* length is 92-108, 104 on FreeBSD */
|
/* length is 92-108, 104 on FreeBSD */
|
||||||
(void)strlcpy(usock.sun_path, path, sizeof(usock.sun_path));
|
(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)",
|
log_err("Cannot create local socket %s (%s)",
|
||||||
path, strerror(errno));
|
path, strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue