public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix time on ia64 and alpha
@ 2005-12-20 14:47 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2005-12-20 14:47 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

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  <jakub@redhat.com>

	* 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 <sysdep.h>
 
+#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 <sysdeps/unix/time.c>
+
+#endif

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-20 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 14:47 [PATCH] Fix time on ia64 and alpha Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).