Package: libupnp
Version: 1.2.1-2
Severity: important
Tags: patch
Hi,
currently your package FTBFS on GNU/kFreeBSD (full build logs are
available on <http://experimental.ftbfs.de/>), which can be solved by
applying the attached patch.
Cheers,
--
Cyril Brulebois
--- libupnp-1.2.1/upnp/src/api/upnpapi.c 2003-01-15 22:39:43.000000000 +0100
+++ libupnp-1.2.1-kbsd/upnp/src/api/upnpapi.c 2007-03-26 05:58:16.000000000 +0200
@@ -43,7 +43,11 @@
#include "ThreadPool.h"
#include "membuffer.h"
#include <sys/ioctl.h>
+#if defined(__FreeBSD_kernel__)
+#include <net/if.h>
+#else
#include <linux/if.h>
+#endif
#include <sys/utsname.h>
#include <sys/socket.h>
#include <netinet/in.h>
--- libupnp-1.2.1/upnp/src/uuid/sysdep.c 2003-01-15 22:39:44.000000000 +0100
+++ libupnp-1.2.1-kbsd/upnp/src/uuid/sysdep.c 2007-03-26 06:05:41.000000000 +0200
@@ -144,7 +144,9 @@
{
MD5_CTX c;
typedef struct {
+#if !defined(__FreeBSD_kernel__)
struct sysinfo s;
+#endif
struct timeval t;
char hostname[257];
} randomness;