1 | #! /bin/sh /usr/share/dpatch/dpatch-run
|
---|
2 | ## 004-GNU_kFreeBSD.dpatch
|
---|
3 | ## by Aurelien Jarno <aurel32@debian.org>
|
---|
4 | ##
|
---|
5 | ## DP: Add support for GNU/kFreeBSD
|
---|
6 |
|
---|
7 | @DPATCH@
|
---|
8 |
|
---|
9 | --- deluge-torrent-0.5.7.1~debian.orig/libtorrent/src/enum_net.cpp
|
---|
10 | +++ deluge-torrent-0.5.7.1~debian/libtorrent/src/enum_net.cpp
|
---|
11 | @@ -50,7 +50,7 @@
|
---|
12 | {
|
---|
13 | std::vector<address> ret;
|
---|
14 |
|
---|
15 | -#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__)
|
---|
16 | +#if defined __linux__ || defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
---|
17 | int s = socket(AF_INET, SOCK_DGRAM, 0);
|
---|
18 | if (s < 0)
|
---|
19 | {
|
---|
20 | @@ -90,7 +90,7 @@
|
---|
21 | ret.push_back(address_v6(b));
|
---|
22 | }
|
---|
23 |
|
---|
24 | -#if defined __MACH__ || defined(__FreeBSD__)
|
---|
25 | +#if defined __MACH__ || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
---|
26 | int current_size = item.ifr_addr.sa_len + IFNAMSIZ;
|
---|
27 | #elif defined __linux__
|
---|
28 | int current_size = sizeof(ifreq);
|
---|