From: Adam Dickmeiss Date: Thu, 22 Mar 2007 09:13:13 +0000 (+0000) Subject: Fixed tid declaration for non-threaded mode X-Git-Tag: YAZ.before.OID.patch~4 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=4cd3f359d12ddfecd1f112cb81235a70a67f8665;p=yaz-moved-to-github.git Fixed tid declaration for non-threaded mode --- 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);