Fixup control socket test for OSX.

git-svn-id: file:///svn/unbound/trunk@3320 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-01-23 16:00:33 +00:00
parent 79044dc6cf
commit c9a20c4a33
2 changed files with 1 additions and 0 deletions

View file

@ -600,6 +600,7 @@ create_local_accept_sock(const char *path, int* noproto)
int s;
struct sockaddr_un sun;
verbose(VERB_ALGO, "creating unix socket %s", path);
#ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
/* this member exists on BSDs, not Linux */
sun.sun_len = (socklen_t)sizeof(sun);

Binary file not shown.