From owner-freebsd-bugs Sun Apr 19 23:34:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA15439 for freebsd-bugs-outgoing; Sun, 19 Apr 1998 23:34:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA15431 for ; Mon, 20 Apr 1998 06:34:04 GMT (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id IAA16401; Mon, 20 Apr 1998 08:31:23 +0200 (CEST) To: Dmitry Khrustalev cc: dima@xyzzy.machaon.ru, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6345 In-reply-to: Your message of "Mon, 20 Apr 1998 10:25:42 +0400." Date: Mon, 20 Apr 1998 08:31:23 +0200 Message-ID: <16399.893053883@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I was just testing the same thing, have you made a world with this one ? In message , 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