From: Kurt Roeckx <Q@ping.be>
To: linux-kernel@vger.kernel.org
Subject: conflicting types for `mktime' is userspave programs using libc5
Date: Fri, 3 Nov 2000 20:23:27 +0100 [thread overview]
Message-ID: <20001103202327.A961@ping.be> (raw)
[-- 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 {
reply other threads:[~2000-11-03 19:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001103202327.A961@ping.be \
--to=q@ping.be \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).