Source: tokyocabinet
Version: 1.4.48-7
Severity: important
Tags: patch
Usertags: hurd
User: debian-h...@lists.debian.org
Attached is a patch to myconf.h to finish the test suite in finite time for
GNU/Hurd. For systems not having POSIX priority scheduling, but are
glibc-based,
not defining the sched_yield() function as a 20ms delay should be OK. This patch
was proposed by Samel Thibault and verified by me to work fine on GNU/Hurd.
Thanks!
--- a/myconf.h.orig 2016-02-11 13:25:08.000000000 +0100
+++ b/myconf.h 2016-02-11 16:55:00.000000000 +0100
@@ -429,7 +429,7 @@
} while(false)
#endif
-#if !defined(_POSIX_PRIORITY_SCHEDULING) && TCUSEPTHREAD
+#if !defined(_POSIX_PRIORITY_SCHEDULING) && !defined(__GLIBC__) && TCUSEPTHREAD
#define sched_yield() usleep(1000 * 20)
#endif