patch-2.1.72 linux/include/linux/time.h

Next file: linux/include/linux/tty_ldisc.h
Previous file: linux/include/linux/sysv_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.71/linux/include/linux/time.h linux/include/linux/time.h
@@ -2,11 +2,12 @@
 #define _LINUX_TIME_H
 
 #include <asm/param.h>
+#include <linux/types.h>
 
 #ifndef _STRUCT_TIMESPEC
 #define _STRUCT_TIMESPEC
 struct timespec {
-	long	tv_sec;		/* seconds */
+	time_t	tv_sec;		/* seconds */
 	long	tv_nsec;	/* nanoseconds */
 };
 #endif /* _STRUCT_TIMESPEC */
@@ -36,8 +37,8 @@
 }
  
 struct timeval {
-	int	tv_sec;		/* seconds */
-	int	tv_usec;	/* microseconds */
+	time_t		tv_sec;		/* seconds */
+	suseconds_t	tv_usec;	/* microseconds */
 };
 
 struct timezone {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov