From owner-freebsd-bugs Sun Apr 19 23:26:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA13987 for freebsd-bugs-outgoing; Sun, 19 Apr 1998 23:26:32 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sunny.bog.msu.su (sunny.bog.msu.su [158.250.20.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA13898; Mon, 20 Apr 1998 06:26:12 GMT (envelope-from dima@bog.msu.su) Received: from localhost (dima@localhost) by sunny.bog.msu.su (8.8.8/8.8.8) with SMTP id KAA15289; Mon, 20 Apr 1998 10:25:43 +0400 (MSD) (envelope-from dima@bog.msu.su) Date: Mon, 20 Apr 1998 10:25:42 +0400 (MSD) From: Dmitry Khrustalev To: Poul-Henning Kamp cc: dima@xyzzy.machaon.ru, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6345 In-Reply-To: <199804190647.XAA21550@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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