diff options
Diffstat (limited to 'net-libs/libtorrent/files/libtorrent-0.13.7-kqueue-configure.patch')
-rw-r--r-- | net-libs/libtorrent/files/libtorrent-0.13.7-kqueue-configure.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-libs/libtorrent/files/libtorrent-0.13.7-kqueue-configure.patch b/net-libs/libtorrent/files/libtorrent-0.13.7-kqueue-configure.patch new file mode 100644 index 000000000000..af8e53ddd233 --- /dev/null +++ b/net-libs/libtorrent/files/libtorrent-0.13.7-kqueue-configure.patch @@ -0,0 +1,46 @@ +From 755daf78769b048c868e6b62c68b4e545494c181 Mon Sep 17 00:00:00 2001 +From: Stephen Shkardoon <ss23@ss23.geek.nz> +Date: Thu, 21 Jun 2018 14:38:30 +1200 +Subject: [PATCH] Modify configure to prevent unnecessary kqueue checks + +By only running the TORRENT_CHECK_KQUEUE_SOCKET_ONLY check if kqueue support +is already detected, we increase the number of platforms that we can +cross compile on. +Otherwise, the cross compilation fails due to TORRENT_CHECK_KQUEUE_SOCKET_ONLY +using AC_RUN_IFELSE, which fails during cross compilation. +--- + scripts/checks.m4 | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/scripts/checks.m4 b/scripts/checks.m4 +index 8d77fc5e..c9333561 100644 +--- a/scripts/checks.m4 ++++ b/scripts/checks.m4 +@@ -88,6 +88,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [ + [ + AC_DEFINE(USE_KQUEUE, 1, Use kqueue.) + AC_MSG_RESULT(yes) ++ TORRENT_CHECK_KQUEUE_SOCKET_ONLY + ], [ + AC_MSG_RESULT(no) + ]) +@@ -137,7 +138,6 @@ AC_DEFUN([TORRENT_WITH_KQUEUE], [ + [ + if test "$withval" = "yes"; then + TORRENT_CHECK_KQUEUE +- TORRENT_CHECK_KQUEUE_SOCKET_ONLY + fi + ]) + ]) +@@ -149,11 +149,9 @@ AC_DEFUN([TORRENT_WITHOUT_KQUEUE], [ + [ + if test "$withval" = "yes"; then + TORRENT_CHECK_KQUEUE +- TORRENT_CHECK_KQUEUE_SOCKET_ONLY + fi + ], [ + TORRENT_CHECK_KQUEUE +- TORRENT_CHECK_KQUEUE_SOCKET_ONLY + ]) + ]) + |