Package: transmission
Severity: important
Version: 1.73-2
Tags: patch
User: glibc-bsd-de...@lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs a small tweaks, see bellow.

It would also be nice if you can stop building bundled libevent library and just use it from debian package.

Thanks in advance

                        Petr


--- third-party/libevent/kqueue.c
+++ third-party/libevent/kqueue.c
@@ -30,6 +30,8 @@
 #include "config.h"
 #endif

+#define _GNU_SOURCE 1
+
 #include <sys/types.h>
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>




--- third-party/libnatpmp/getgateway.c
+++ third-party/libnatpmp/getgateway.c
@@ -31,7 +31,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




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to