X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Flog.c;h=0689f6771b87500ca85fed80046ca77a0b194bdf;hb=acf66fb3406fb7eb3e8c76cbe073cbe061080a5a;hp=05a92b3476526e855be7376409de20f658c64276;hpb=34841706b5b43761ba4a3f3c6b0fd667b775654e;p=yaz-moved-to-github.git diff --git a/src/log.c b/src/log.c index 05a92b3..0689f67 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: log.c,v 1.35 2006-05-07 18:26:25 adam Exp $ + * $Id: log.c,v 1.36 2006-06-30 11:09:44 adam Exp $ */ /** @@ -339,6 +339,9 @@ static void yaz_strftime(char *dst, size_t sz, DWORD tid = GetCurrentThreadId(); #else long tid = 0; +#if YAZ_POSIX_THREADS + tid = pthread_self(); +#endif #endif memcpy(fmt2, fmt, cp-fmt); fmt2[cp-fmt] = '\0';