X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fsimple-protocol.c;h=3e0ebb114444a665e046b9b0d9ada1c10d0c73c6;hb=4cfd855eb3f148cfad74c562004a723d0a9862b7;hp=7f755621f926a647f26905d30db2e2c88169d1d6;hpb=6589afffbb5f484ebc3aa5a7a533eaf0940ac202;p=catta diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 7f75562..3e0ebb1 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -475,7 +475,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) { if (n == 1) { int r; - if ((r = sd_is_socket(AF_LOCAL, SOCK_STREAM, 1, 0)) < 0) { + if ((r = sd_is_socket(SD_LISTEN_FDS_START, AF_LOCAL, SOCK_STREAM, 1)) < 0) { avahi_log_warn("Passed systemd file descriptor is of wrong type: %s", strerror(-r)); goto fail; }