From: Matthias Wachs Date: Wed, 25 May 2011 15:19:07 +0000 (+0000) Subject: fix: unlinking unix domain sockets on freebsd X-Git-Tag: initial-import-from-subversion-38251~18415 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc25b8f4e03c545a12631c50a5aa41d435c00cd5;p=oweals%2Fgnunet.git fix: unlinking unix domain sockets on freebsd --- diff --git a/src/util/service.c b/src/util/service.c index e88ac77c8..834b27dd6 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -769,9 +769,12 @@ add_unixpath (struct sockaddr **saddrs, #if LINUX un->sun_path[0] = '\0'; slen = sizeof (struct sockaddr_un); +#elif FREEBSD + slen += sizeof (sa_family_t) + 1 ; #else - slen += sizeof (sa_family_t); + slen += sizeof (sa_family_t) ; #endif + *saddrs = (struct sockaddr*) un; *saddrlens = slen; #else