openbsd-ports/net/avahi/patches/patch-avahi-daemon_main_c
2011-04-25 10:02:43 +00:00

27 lines
973 B
Plaintext

$OpenBSD: patch-avahi-daemon_main_c,v 1.5 2011/04/25 10:02:43 ajacoutot Exp $
--- avahi-daemon/main.c.orig Wed Feb 23 14:10:07 2011
+++ avahi-daemon/main.c Mon Apr 25 11:42:00 2011
@@ -320,6 +320,11 @@ static void update_browse_domains(void) {
return;
}
+ if (!resolv_conf_search_domains) {
+ avahi_server_set_browse_domains(avahi_server, NULL);
+ return;
+ }
+
l = avahi_string_list_copy(config.server_config.browse_domains);
for (p = resolv_conf_search_domains, n = 0; *p && n < BROWSE_DOMAINS_MAX; p++, n++) {
@@ -1101,8 +1106,10 @@ static int run_server(DaemonConfig *c) {
ignore_signal(SIGPIPE);
+#ifndef __OpenBSD__ // no NSS in OpenBSD
if (!(nss_support = avahi_nss_support()))
avahi_log_warn("WARNING: No NSS support for mDNS detected, consider installing nss-mdns!");
+#endif
if (!(simple_poll_api = avahi_simple_poll_new())) {
avahi_log_error("Failed to create main loop object.");