| @@ -1,16 +1,19 @@ | | | @@ -1,16 +1,19 @@ |
1 | $NetBSD: patch-ab,v 1.9 2009/06/04 19:15:47 tron Exp $ | | 1 | $NetBSD: patch-ab,v 1.10 2009/06/04 19:23:51 tron Exp $ |
2 | | | 2 | |
3 | Deal with the kqueue(2) API differences between NetBSD and the other BSDs. | | 3 | Deal with the kqueue(2) API differences between NetBSD and the other BSDs. |
| | | 4 | The upstream bug report is here: |
| | | 5 | |
| | | 6 | http://libtorrent.rakshasa.no/ticket/1765 |
4 | | | 7 | |
5 | --- src/torrent/poll_kqueue.cc.orig 2008-05-07 13:19:13.000000000 +0100 | | 8 | --- src/torrent/poll_kqueue.cc.orig 2008-05-07 13:19:13.000000000 +0100 |
6 | +++ src/torrent/poll_kqueue.cc 2009-06-04 18:10:50.000000000 +0100 | | 9 | +++ src/torrent/poll_kqueue.cc 2009-06-04 18:10:50.000000000 +0100 |
7 | @@ -57,6 +57,12 @@ | | 10 | @@ -57,6 +57,12 @@ |
8 | | | 11 | |
9 | #ifdef USE_KQUEUE | | 12 | #ifdef USE_KQUEUE |
10 | | | 13 | |
11 | +#ifdef __NetBSD__ | | 14 | +#ifdef __NetBSD__ |
12 | +typedef uintptr_t kevent_udata_t; | | 15 | +typedef uintptr_t kevent_udata_t; |
13 | +#else | | 16 | +#else |
14 | +typedef void *kevent_udata_t; | | 17 | +typedef void *kevent_udata_t; |
15 | +#endif | | 18 | +#endif |
16 | + | | 19 | + |