linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* conflicting types for `mktime' is userspave programs using libc5
@ 2000-11-03 19:23 Kurt Roeckx
  0 siblings, 0 replies; only message in thread
From: Kurt Roeckx @ 2000-11-03 19:23 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

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


[-- Attachment #2: mktime.diff --]
[-- Type: text/plain, Size: 491 bytes --]

--- 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 {

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

only message in thread, other threads:[~2000-11-03 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-03 19:23 conflicting types for `mktime' is userspave programs using libc5 Kurt Roeckx

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 NNTP newsgroup(s).