OSDN Git Service

2006-04-07 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Fri, 7 Apr 2006 21:46:00 +0000 (21:46 +0000)
committerjjohnstn <jjohnstn>
Fri, 7 Apr 2006 21:46:00 +0000 (21:46 +0000)
        * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
        anymore.  Assume there is a gettimeofday syscall.

newlib/ChangeLog
newlib/libc/time/time.c

index 506d2cc..8b5a2b4 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-07  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
+       anymore.  Assume there is a gettimeofday syscall.
+
 2006-03-29  Shaun Jackman  <sjackman@gmail.com>
 
        * libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
index 38cce50..1e086f4 100644 (file)
@@ -1,5 +1,3 @@
-/* FIXME: doc says "not avail" due to #if 0.
-         DELETE that line if inappropriate! */
 /*
 FUNCTION
 <<time>>---get current calendar time (as single number)
@@ -32,8 +30,6 @@ Supporting OS subroutine required: Some implementations require
 <<gettimeofday>>.
 */
 
-#ifdef HAVE_GETTIMEOFDAY
-
 /* Most times we have a system call in newlib/libc/sys/.. to do this job */
 
 #include <_ansi.h>
@@ -55,5 +51,3 @@ _DEFUN (time, (t),
     }
   return -1;
 }
-
-#endif