From a6908b6d93de84a850a3e558a2e4c17f02c3d651 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 Sep 1997 14:57:23 +0000 Subject: [PATCH] Windows NT port. --- index/zrpn.c | 9 ++++++++- index/zserver.c | 18 ++++++++++++++++-- index/zsets.c | 9 ++++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/index/zrpn.c b/index/zrpn.c index caf9dfd..fd48152 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zrpn.c,v $ - * Revision 1.65 1997-09-22 12:39:06 adam + * Revision 1.66 1997-09-25 14:58:03 adam + * Windows NT port. + * + * Revision 1.65 1997/09/22 12:39:06 adam * Added get_pos method for the ranked result sets. * * Revision 1.64 1997/09/18 08:59:20 adam @@ -226,7 +229,11 @@ */ #include #include +#ifdef WINDOWS +#include +#else #include +#endif #include #include "zserver.h" diff --git a/index/zserver.c b/index/zserver.c index 9c59eae..9c2fbff 100644 --- a/index/zserver.c +++ b/index/zserver.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zserver.c,v $ - * Revision 1.48 1997-09-17 12:19:19 adam + * Revision 1.49 1997-09-25 14:57:23 adam + * Windows NT port. + * + * Revision 1.48 1997/09/17 12:19:19 adam * Zebra version corresponds to YAZ version 1.4. * Changed Zebra server so that it doesn't depend on global common_resource. * @@ -178,18 +181,26 @@ */ #include #include +#ifdef WINDOWS +#include +#include +#else #include +#endif #include #include #include #include -#define USE_TIMES 1 #ifdef __linux__ #define USE_TIMES 1 #endif +#ifndef USE_TIMES +#define USE_TIMES 0 +#endif + #if USE_TIMES #include #endif @@ -284,8 +295,11 @@ static void register_unlock (ZServerInfo *zi) else waitSec = 0; } +#ifdef WINDOWS +#else if (waitSec > 0) sleep (waitSec); +#endif if (zi->registerState != -1) zebraServerUnlock (zi->registerState); } diff --git a/index/zsets.c b/index/zsets.c index 0c71974..b43ea18 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zsets.c,v $ - * Revision 1.11 1996-12-23 15:30:46 adam + * Revision 1.12 1997-09-25 14:57:36 adam + * Windows NT port. + * + * Revision 1.11 1996/12/23 15:30:46 adam * Work on truncation. * Bug fix: result sets weren't deleted after server shut down. * @@ -46,7 +49,11 @@ */ #include #include +#ifdef WINDOWS +#include +#else #include +#endif #include "zserver.h" #include -- 1.7.10.4