Bug#636786: libnatpmp: patch to fix building on kfreebsd
Package: src:libnatpmp
Version: 20110730-1
Severity: normal
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd@lists.debian.org
Hi!
Your package failed to build on kFreeBSD. Ive written and attached a
patch that does fix this problem. Please consider applying.
If you have further questions please mail debian-bsd@lists.debian.org
Regards
Christoph
--- libnatpmp-20101211/getgateway.c
+++ libnatpmp-20101211.orig/getgateway.c
@@ -35,7 +35,7 @@
#undef USE_SYSCTL_NET_ROUTE
#endif
-#ifdef BSD
+#if defined(BSD) || defined(__FreeBSD_kernel__)
#undef USE_PROC_NET_ROUTE
#define USE_SOCKET_ROUTE
#undef USE_SYSCTL_NET_ROUTE
--
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer
Reply to: