From 66fa7a4243b0801adf283d41e6231da312f1a5bb Mon Sep 17 00:00:00 2001
From: marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Thu, 12 Oct 2006 16:44:42 +0000
Subject: Fix build on 4.X.

Submitted by:	luigi


git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7738 df743ca5-7f9a-e211-a948-0013205c9059
---
 net/avahi/Makefile                     |  7 ++-----
 net/avahi/files/patch-avahi-core_dns.c | 10 ++++++++++
 2 files changed, 12 insertions(+), 5 deletions(-)
 create mode 100644 net/avahi/files/patch-avahi-core_dns.c

(limited to 'net')

diff --git a/net/avahi/Makefile b/net/avahi/Makefile
index 8e57ef215..e04898b53 100644
--- a/net/avahi/Makefile
+++ b/net/avahi/Makefile
@@ -3,7 +3,7 @@
 # Whom:			Joe Marcus Clarke <marcus@FreeBSD.org>
 #
 # $FreeBSD$
-#    $MCom: ports/net/avahi/Makefile,v 1.17 2006/10/07 19:44:08 marcus Exp $
+#    $MCom: ports/net/avahi/Makefile,v 1.18 2006/10/11 05:40:17 marcus Exp $
 
 PORTNAME=	avahi
 PORTVERSION=	0.6.14
@@ -23,6 +23,7 @@ USE_GNOME?=	gnomehack ltverhack glib20
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool:15
 USE_LDCONFIG=	yes
+USE_GETOPT_LONG=yes
 CONFIGURE_ARGS?=--with-distro=freebsd \
 		--with-dbus-system-address=unix:path=/var/run/dbus/dbus.pipe \
 		--disable-qt3 \
@@ -57,10 +58,6 @@ OPTIONS=	GTK2 "Build a GTK+ 2 browser utility" off \
 .include <bsd.port.pre.mk>
 
 .if !defined(AVAHI_SLAVE)
-.if ${OSVERSION} < 500000
-IGNORE=	does not work on FreeBSD 4.X
-.endif
-
 .if defined(WITH_LIBDNS)
 CONFIGURE_ARGS+=--enable-compat-libdns_sd
 PLIST_SUB+=	LIBDNS=""
diff --git a/net/avahi/files/patch-avahi-core_dns.c b/net/avahi/files/patch-avahi-core_dns.c
new file mode 100644
index 000000000..3c24721e5
--- /dev/null
+++ b/net/avahi/files/patch-avahi-core_dns.c
@@ -0,0 +1,10 @@
+--- avahi-core/dns.c.orig	Thu Oct 12 12:43:19 2006
++++ avahi-core/dns.c	Thu Oct 12 12:43:31 2006
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <assert.h>
+ 
++#include <sys/types.h>
+ #include <netinet/in.h>
+ 
+ #include <avahi-common/defs.h>
-- 
cgit