Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 1998 08:31:23 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Dmitry Khrustalev <dima@bog.msu.su>
Cc:        dima@xyzzy.machaon.ru, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/6345 
Message-ID:  <16399.893053883@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 20 Apr 1998 10:25:42 %2B0400." <Pine.GSO.3.95.980420102230.15221B-100000@sunny.bog.msu.su> 

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

I was just testing the same thing, have you made a world with this one ?

In message <Pine.GSO.3.95.980420102230.15221B-100000@sunny.bog.msu.su>, Dmitry 
Khrustalev writes:
>
>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:
>
>
>

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
"Drink MONO-tonic, it goes down but it will NEVER come back up!"

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?16399.893053883>