Tweak patch.

This commit is contained in:
ajacoutot 2013-05-09 15:17:32 +00:00
parent b2e36880f1
commit 153d71fed5
2 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.90 2013/04/28 08:18:55 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.91 2013/05/09 15:17:32 ajacoutot Exp $
ONLY_FOR_ARCHS-mono= ${MONO_ARCHS}
@ -24,7 +24,7 @@ PKGNAME-qt3= avahi-qt3-${V}
PKGNAME-qt4= avahi-qt4-${V}
PKGNAME-ui= avahi-ui-${V}
REVISION-main= 7
REVISION-main= 8
REVISION-gtk= 4
REVISION-gtk3= 4
REVISION-gui= 4

View File

@ -1,15 +1,20 @@
$OpenBSD: patch-avahi-compat-libdns_sd_warn_c,v 1.2 2010/07/17 14:12:38 ajacoutot Exp $
$OpenBSD: patch-avahi-compat-libdns_sd_warn_c,v 1.3 2013/05/09 15:17:32 ajacoutot Exp $
Reverse logic to stop polluting syslog(3).
Stop polluting syslog(3).
--- avahi-compat-libdns_sd/warn.c.orig Fri Jun 25 02:41:26 2010
+++ avahi-compat-libdns_sd/warn.c Mon Jul 5 12:02:37 2010
@@ -110,7 +110,7 @@ void avahi_warn_linkage(void) {
--- avahi-compat-libdns_sd/warn.c.orig Thu Aug 26 02:51:38 2010
+++ avahi-compat-libdns_sd/warn.c Thu May 9 17:16:59 2013
@@ -110,11 +110,13 @@ void avahi_warn_linkage(void) {
linkage_warning = 1;
pthread_mutex_unlock(&linkage_mutex);
- if (!w && !getenv("AVAHI_COMPAT_NOWARN")) {
+ if (!w && getenv("AVAHI_COMPAT_WARN")) {
+#if 0
if (!w && !getenv("AVAHI_COMPAT_NOWARN")) {
avahi_warn("The program '%s' uses the "COMPAT_LAYER" compatibility layer of Avahi.", avahi_exe_name());
avahi_warn("Please fix your application to use the native API of Avahi!");
avahi_warn("For more information see <http://0pointer.de/avahi-compat?s="CGI_SUBSYSTEM"&e=%s>", avahi_exe_name());
}
+#endif
}
void avahi_warn_unsupported(const char *function) {