pkgsrc/databases/tokyotyrant/patches/patch-ac
obache 37bc6d2b1c Update tokyotyrant to 1.1.39.
2009-12-07  Mikio Hirabayashi  <hirarin@gmail.com>

	* ttutil.c (ttservstart): error handler for the accept call was added.

	* ttserver.c (proc): the system connection limit is now reset.

	- Release: 1.1.39

2009-11-05  Mikio Hirabayashi  <hirarin@gmail.com>

	* ttserver.c (do_mc_append, do_mc_prepend): new functions.

	- Release: 1.1.38

2009-10-20  Mikio Hirabayashi  <hirarin@gmail.com>

	* ttserver.c (do_stat): "fatal" attribute was added.

	* ttutil.c (ttwaitsock): new function.

	* ttutil.c (ttopensock, ttsocksend, ttsockgetc): "errno" is now copied just in case.

	* tcrdb.c (tcrdbparasearchworker): a bug of race condition was fixed.

	- Release: 1.1.37

2009-10-06  Mikio Hirabayashi  <hirarin@gmail.com>

	* scrext.c (serv_strstr): new function.

	* ttserver.c (main, proc): "-mul" option was added.

	- Release: 1.1.36

2009-09-18  Mikio Hirabayashi  <hirarin@gmail.com>

	* tculog.c (tculogadbputshl, tculogadbputshlproc): new functions.

	* scrext.c (iterrec): a bug related to handling the return value was fixed.

	* ttserver.c (do_http_post): "tcadbmisc" is now supported.

	* ttserver.c (do_stat, do_mc_stats): counts of command execution are now output.

	* tcrdb.c (tcrdbparasearch, tcrdbparasearchworker): new functions.

	- Release: 1.1.35

2009-08-04  Mikio Hirabayashi  <hirarin@gmail.com>

	* tcrdb.c (tcrdbput, tcrdbout, tcrdbget): reconnect mechanism was enhanced.

	* tcrdb.c (tcrdbreconnect): delay mecahism was added.

	* tculog.c (tculrdnew): a bug related to timestamp detection was fixed.

	* tcrmgr.c (runimporttsv, procimporttsv): "-sep" option was added.

	* ttserver.c (do_log): a bug of buffer overrun was fixed.

	- Release: 1.1.34
2010-01-17 02:49:05 +00:00

46 lines
1.5 KiB
Text

$NetBSD: patch-ac,v 1.6 2010/01/17 02:49:05 obache Exp $
Add NetBSD and DragonFly support.
http://sourceforge.net/tracker/index.php?func=detail&aid=2447593&group_id=200242&atid=972717
--- myconf.h.orig 2009-12-08 08:34:21.000000000 +0000
+++ myconf.h
@@ -44,6 +44,11 @@
#define _SYS_OPENBSD_
#define TTSYSNAME "OpenBSD"
+#elif defined(__DragonFly__)
+
+#define _SYS_DRAGONFLY_
+#define TTSYSNAME "DragonFly"
+
#elif defined(__sun__) || defined(__sun)
#define _SYS_SUNOS_
@@ -92,7 +97,7 @@
#endif
#if !defined(_SYS_LINUX_) && !defined(_SYS_FREEBSD_) && !defined(_SYS_MACOSX_) && \
- !defined(_SYS_SUNOS_)
+ !defined(_SYS_SUNOS_) && !defined(_SYS_NETBSD_) && !defined(_SYS_DRAGONFLY_)
#error =======================================
#error Your platform is not supported. Sorry.
#error =======================================
@@ -215,7 +220,7 @@
#include <tctdb.h>
#include <tcadb.h>
-#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_)
+#if defined(_SYS_FREEBSD_) || defined(_SYS_MACOSX_) || defined(_SYS_NETBSD_) || defined(_SYS_DRAGONFLY_)
#define TTUSEKQUEUE 1
#elif defined(_SYS_SUNOS_)
@@ -242,7 +247,7 @@ typedef struct { int portev_object; } po
*************************************************************************************************/
-#if defined(_SYS_FREEBSD_) || defined(_SYS_NETBSD_) || defined(_SYS_OPENBSD_)
+#if defined(_SYS_FREEBSD_)
#define nan(TC_a) strtod("nan", NULL)
#define nanl(TC_a) ((long double)strtod("nan", NULL))
#endif