summaryrefslogtreecommitdiff
path: root/net-libs/libtorrent/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-10 18:05:22 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-10 18:05:22 +0000
commit17dcfeba22240edb3c54d96e319edf6c4bc008c3 (patch)
treebf7e044eef048853420208d083f77f7cd820e881 /net-libs/libtorrent/files
parentf95eeaf7db6ca1bfbb34c05fdad9ed9bb603b1c8 (diff)
gentoo auto-resync : 10:03:2023 - 18:05:22
Diffstat (limited to 'net-libs/libtorrent/files')
-rw-r--r--net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch b/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch
new file mode 100644
index 000000000000..0a23141a7e58
--- /dev/null
+++ b/net-libs/libtorrent/files/libtorrent-0.13.8-configure-clang-16.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/899566
+https://github.com/rakshasa/libtorrent/pull/237
+
+From e851a8657d2ef5c332260f1e3a3896f438dba255 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Tue, 3 Jan 2023 14:41:11 +0100
+Subject: [PATCH] configure: Define _GNU_SOURCE when checking for
+ pthread_setname_np
+
+Previously, the test would always fail with compilers that do not
+support implicit function declarations because the pthread_setname_np
+function was not declared.
+--- a/scripts/checks.m4
++++ b/scripts/checks.m4
+@@ -469,6 +469,7 @@ AC_DEFUN([TORRENT_CHECK_PTHREAD_SETNAME_NP], [
+ AC_MSG_CHECKING(for pthread_setname_np type)
+
+ AC_TRY_LINK([
++ #define _GNU_SOURCE
+ #include <pthread.h>
+ #include <sys/types.h>
+ ],[