Browse Source

dnsutils: update lib-isc-pthreads-thread.c.patch

master
Leonid Plyushch 5 years ago
parent
commit
c77bde0a2f
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 21
      packages/dnsutils/lib-isc-pthreads-thread.c.patch

21
packages/dnsutils/lib-isc-pthreads-thread.c.patch

@ -1,13 +1,12 @@
diff -uNr bind-9.16.0/lib/isc/pthreads/thread.c bind-9.16.0.mod/lib/isc/pthreads/thread.c
--- bind-9.16.0/lib/isc/pthreads/thread.c 2020-02-12 22:03:44.000000000 +0200
+++ bind-9.16.0.mod/lib/isc/pthreads/thread.c 2020-03-08 22:29:34.847302635 +0200
@@ -95,7 +95,9 @@
void
isc_thread_setconcurrency(unsigned int level)
{
+#ifndef __ANDROID__
(void)pthread_setconcurrency(level);
+#endif
diff -uNr bind-9.16.1/lib/isc/pthreads/thread.c bind-9.16.1.mod/lib/isc/pthreads/thread.c
--- bind-9.16.1/lib/isc/pthreads/thread.c 2020-03-11 18:46:53.000000000 +0200
+++ bind-9.16.1.mod/lib/isc/pthreads/thread.c 2020-03-19 22:25:00.361910191 +0200
@@ -88,7 +88,7 @@
}
}
void
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__ANDROID__)
#define pthread_setconcurrency(a) (void)a /* nothing */
#endif /* ifdef __NetBSD__ */

Loading…
Cancel
Save