avahi port and FreeBSD 4.x

Luigi Rizzo rizzo at icir.org
Thu Oct 12 02:42:28 PDT 2006


hoping someone is interested...
the port is marked "non working" on FreeBSD < 5,
however it at least builds by adding
#include <sys/types.h> to avahi-core/dns.c,
and making sure -lgnugetopt is passed to the linker.

For the former, the patch is simple (below).
For the latter, i just added a line to "configure"

	+LIBS="-lgnugetopt  $LIBS"

but almost surely there is a better way...

cheers
luigi

	> more files/patch-avahi-core-dns.c 
	--- avahi-core/dns.c.orig       Thu Oct 12 10:58:18 2006
	+++ avahi-core/dns.c    Thu Oct 12 10:56:39 2006
	@@ -28,6 +28,7 @@
	 #include <stdio.h>
	 #include <assert.h>
	 
	+#include <sys/types.h>
	 #include <netinet/in.h>
	 
	 #include <avahi-common/defs.h>



More information about the freebsd-gnome mailing list