From 16d9e30dd7fa052bd7e6dd37927d7f27bec90ef1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 19 Oct 2005 00:10:02 +0000 Subject: * Compile tests only when --enable-tests was specified on the configure command line * Build compat layers only when --enable-compat-{howl,libdns_sd} was passed to configure * drop avahi_strlcpy() to reduce our code/API size * replace getifname() with if_indextoname in avahi-dnsconfd * declare environ if needed in avahi-dnsconfd * drop some useless definitions like AVAHI_PUBLISH_NULL = 0 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@819 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/Makefile.am | 2 ++ avahi-core/entry.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'avahi-core') diff --git a/avahi-core/Makefile.am b/avahi-core/Makefile.am index 3ecce11..9516615 100644 --- a/avahi-core/Makefile.am +++ b/avahi-core/Makefile.am @@ -34,6 +34,7 @@ avahiinclude_HEADERS = \ lib_LTLIBRARIES = \ libavahi-core.la +if ENABLE_TESTS noinst_PROGRAMS = \ prioq-test \ avahi-test \ @@ -44,6 +45,7 @@ noinst_PROGRAMS = \ hashmap-test \ querier-test \ update-test +endif libavahi_core_la_SOURCES = \ timeeventq.c timeeventq.h\ diff --git a/avahi-core/entry.c b/avahi-core/entry.c index 23ab5e0..18fe431 100644 --- a/avahi-core/entry.c +++ b/avahi-core/entry.c @@ -890,7 +890,7 @@ int avahi_server_add_dns_server_name( r->data.srv.weight = 0; r->data.srv.port = port; r->data.srv.name = n; - ret = avahi_server_add(s, g, interface, protocol, AVAHI_PUBLISH_NULL, r); + ret = avahi_server_add(s, g, interface, protocol, 0, r); avahi_record_unref(r); return ret; -- cgit