When trying to compile something using libc5, with the
2.4.0-test10 kernel, I get this:
/usr/include/time.h:85: conflicting types for `mktime'
/usr/include/linux/time.h:69: previous declaration of `mktime'
A simple diff is attached
--- include/linux/time.h~ Fri Nov 3 20:22:14 2000
+++ include/linux/time.h Fri Nov 3 20:21:22 2000
@@ -46,6 +46,7 @@
value->tv_sec = jiffies / HZ;
}
+#ifdef __KERNEL__
/* Converts Gregorian date to seconds since 1970-01-01 00:00:00.
* Assumes input in normal date format, i.e. 1980-12-31 23:59:59
* => year=1980, mon=12, day=31, hour=23, min=59, sec=59.
@@ -78,6 +79,7 @@
)*60 + min /* now have minutes */
)*60 + sec; /* finally seconds */
}
+#endif
struct timeval {