head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2; locks; strict; comment @# @; 1.2 date 2009.02.05.15.36.34; author obache; state dead; branches; next 1.1; 1.1 date 2009.01.04.11.00.35; author obache; state Exp; branches; next ; desc @@ 1.2 log @Update TokyoCabinet to 1.4.4. Changes: 2009-01-29 Mikio Hirabayashi * tcutil.c (tcmapputproc, tctreeputproc, tcmdbputproc, tcndbputproc): new functions. * tchdb.c (tchdbputproc): new function. * tchdb.c (TDBTHREADYIELD): "sched_yield" is now used instead of "pthread_yield". * tcbdb.c (tcbdbputproc): new function. * tcbdb.c (tcbdbcurkey, tcbdbcurval): the type of the return value was modified. * tcfdb.c (tcfdbputproc): new function. * tcadb.c (tcadbputproc): new function. * tcadb.c (tcadbmisc): sub funcitons "put", "out", and "get" were added. * tcadb.c (tcstrisnum): new function. - Release: 1.4.4 @ text @$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 +#define pthread_yield() sched_yield() +#endif + #if ! defined(PATH_MAX) #if defined(MAXPATHLEN) #define PATH_MAX MAXPATHLEN @ 1.1 log @Fixes build failure on NetBSD. pthread_yield() is not in NetBSD's pthread. @ text @d1 1 a1 1 $NetBSD$ @