summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/simple-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/simple-protocol.c')
-rw-r--r--avahi-daemon/simple-protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c
index 8aa427b..3cac713 100644
--- a/avahi-daemon/simple-protocol.c
+++ b/avahi-daemon/simple-protocol.c
@@ -32,6 +32,7 @@
#include <sys/un.h>
#include <errno.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include <avahi-common/llist.h>
#include <avahi-common/malloc.h>
@@ -470,7 +471,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) {
unlink(AVAHI_SOCKET);
- if (bind(server->fd, &sa, sizeof(sa)) < 0) {
+ if (bind(server->fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) {
avahi_log_warn("bind(): %s", strerror(errno));
goto fail;
}