From 4cd3f359d12ddfecd1f112cb81235a70a67f8665 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 22 Mar 2007 09:13:13 +0000 Subject: [PATCH] Fixed tid declaration for non-threaded mode --- src/log.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/log.c b/src/log.c index 351c0bd..ced99c5 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: log.c,v 1.48 2007-02-23 10:15:01 adam Exp $ + * $Id: log.c,v 1.49 2007-03-22 09:13:13 adam Exp $ */ /** @@ -389,9 +389,10 @@ static void yaz_strftime(char *dst, size_t sz, #ifdef WIN32 DWORD tid = GetCurrentThreadId(); #else - pthread_t tid = 0; #if YAZ_POSIX_THREADS - tid = pthread_self(); + pthread_t tid = pthread_self(); +#else + long tid = 0; #endif #endif memcpy(fmt2, fmt, cp-fmt); -- 1.7.10.4