X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Flog.c;h=ced99c5b70ce38776c349501171a86abcf69a3c2;hb=be821514c869d68186361b5aab6bbfd1aa60e087;hp=351c0bd1a82e35702ddd321024513b967a1b3f8b;hpb=021f5586a328c6600460aa9f9be664ba19ba20d4;p=yaz-moved-to-github.git 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);