]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/simple-protocol.c
Replace libglade with GtkBuilder
[catta] / avahi-daemon / simple-protocol.c
index 740f78b1f581250802fd167c9bb351359264a85b..33e5db333f9fcd419d67e414e6b18fc3dff28110 100644 (file)
 #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 */