X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fsimple-protocol.c;h=33e5db333f9fcd419d67e414e6b18fc3dff28110;hb=f4b9208889cfca5eeb1432b3ce3f02fb305d6e81;hp=740f78b1f581250802fd167c9bb351359264a85b;hpb=eb13918fc2bc190961d6b3938016ea8e988c7d62;p=catta diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 740f78b..33e5db3 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -49,6 +49,13 @@ #include "chroot.h" #endif +#ifndef AF_LOCAL +#define AF_LOCAL AF_UNIX +#endif +#ifndef PF_LOCAL +#define PF_LOCAL PF_UNIX +#endif + #define BUFFER_SIZE (20*1024) #define CLIENTS_MAX 50 @@ -465,7 +472,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) { strncpy(sa.sun_path, AVAHI_SOCKET, sizeof(sa.sun_path)-1); /* We simply remove existing UNIX sockets under this name. The - Avahi daemons makes sure that it runs only once on a host, + Avahi daemon makes sure that it runs only once on a host, therefore sockets that already exist are stale and may be removed without any ill effects */