Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 1998 10:25:42 +0400 (MSD)
From:      Dmitry Khrustalev <dima@bog.msu.su>
To:        Poul-Henning Kamp <phk@FreeBSD.ORG>
Cc:        dima@xyzzy.machaon.ru, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/6345
Message-ID:  <Pine.GSO.3.95.980420102230.15221B-100000@sunny.bog.msu.su>
In-Reply-To: <199804190647.XAA21550@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

This patch, however, breaks static linking with regular libc. To fix,
apply this one:

--- lib/libc/stdtime/localtime.c.ORIG	Mon Apr 20 09:37:04 1998
+++ lib/libc/stdtime/localtime.c	Mon Apr 20 09:39:29 1998
@@ -1345,6 +1345,7 @@
 	return asctime(localtime(timep));
 }
 
+#ifdef	_THREAD_SAFE
 char *
 ctime_r(timep, buf)
 const time_t * const	timep;
@@ -1353,6 +1354,7 @@
         struct tm tm;
 	return asctime_r(localtime_r(timep, &tm), buf);
 }
+#endif
 
 /*
 ** Adapted from code provided by Robert Elz, who writes:



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95.980420102230.15221B-100000>