From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21395 invoked by alias); 20 Dec 2005 14:47:58 -0000 Received: (qmail 21379 invoked by uid 22791); 20 Dec 2005 14:47:58 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Dec 2005 14:47:57 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id jBKElnpY014921; Tue, 20 Dec 2005 15:47:49 +0100 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id jBKElno1014920; Tue, 20 Dec 2005 15:47:49 +0100 Date: Tue, 20 Dec 2005 14:47:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix time on ia64 and alpha Message-ID: <20051220144749.GO4625@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00026.txt.bz2 Hi! IA-64 and Alpha don't define __NR_time and need to use the generic implementation. SPARC64 needs to use it too, but defines __NR_time (because it is provided for 32-bit code), so sysdeps/unix/sysv/linux/sparc/sparc64/time.c should be kept as is. 2005-12-20 Jakub Jelinek * sysdeps/unix/sysv/linux/time.c: If __NR_time is not defined, use sysdeps/unix/time.c implementation. --- libc/sysdeps/unix/sysv/linux/time.c.jj 2005-12-20 08:49:43.000000000 +0100 +++ libc/sysdeps/unix/sysv/linux/time.c 2005-12-20 12:49:42.000000000 +0100 @@ -21,6 +21,7 @@ #include +#ifdef __NR_time time_t time (time_t *t) @@ -33,3 +34,9 @@ time (time_t *t) return res; } libc_hidden_def (time) + +#else + +#include + +#endif Jakub