summaryrefslogtreecommitdiff
path: root/databases/tokyocabinet
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2009-01-04 11:00:35 +0000
committerobache <obache@pkgsrc.org>2009-01-04 11:00:35 +0000
commit44c79eba2c7a9c5f57cb7711b99711c6080d275a (patch)
treec5ca627580fdab8c8ddb4265018ef87d5fe270b9 /databases/tokyocabinet
parent50f023ef366c60df20cf2e323084619f12da8db9 (diff)
downloadpkgsrc-44c79eba2c7a9c5f57cb7711b99711c6080d275a.tar.gz
Fixes build failure on NetBSD.
pthread_yield() is not in NetBSD's pthread.
Diffstat (limited to 'databases/tokyocabinet')
-rw-r--r--databases/tokyocabinet/distinfo4
-rw-r--r--databases/tokyocabinet/patches/patch-ac18
2 files changed, 20 insertions, 2 deletions
diff --git a/databases/tokyocabinet/distinfo b/databases/tokyocabinet/distinfo
index adc72719069..4483ead51e8 100644
--- a/databases/tokyocabinet/distinfo
+++ b/databases/tokyocabinet/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.16 2009/01/04 10:58:22 obache Exp $
+$NetBSD: distinfo,v 1.17 2009/01/04 11:00:35 obache Exp $
SHA1 (tokyocabinet-1.3.27.tar.gz) = 1ea3f009bd91de81eca00146bfd091b0a6af5251
RMD160 (tokyocabinet-1.3.27.tar.gz) = 59b4f44dc968c0dac6db4e5b940a4041ed2b1ccf
Size (tokyocabinet-1.3.27.tar.gz) = 768517 bytes
SHA1 (patch-aa) = eb38eb79251d653122fa0f088fd78d1fb828340d
-SHA1 (patch-ab) = 12524014241c14d83ecd4d4d353f1dc016e3a02b
+SHA1 (patch-ac) = 12524014241c14d83ecd4d4d353f1dc016e3a02b
diff --git a/databases/tokyocabinet/patches/patch-ac b/databases/tokyocabinet/patches/patch-ac
new file mode 100644
index 00000000000..4cca9a01ca1
--- /dev/null
+++ b/databases/tokyocabinet/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1 2009/01/04 11:00:35 obache Exp $
+
+https://sourceforge.net/tracker2/?func=detail&aid=2484842&group_id=200242&atid=972717
+
+--- myconf.h.orig 2009-01-03 12:51:23.000000000 +0000
++++ myconf.h
+@@ -258,6 +258,11 @@
+ #define nan(TC_a) strtod("nan", NULL)
+ #endif
+
++#if defined(_SYS_NETBSD_) && TCUSEPTHREAD
++#include <sched.h>
++#define pthread_yield() sched_yield()
++#endif
++
+ #if ! defined(PATH_MAX)
+ #if defined(MAXPATHLEN)
+ #define PATH_MAX MAXPATHLEN