This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 02/17] mktime: merge <sys/types.h> change from gnulib
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 16 Mar 2012 03:31:25 -0700
- Subject: [PATCH 02/17] mktime: merge <sys/types.h> change from gnulib
* time/mktime.c: Do not include <sys/types.h>; no longer needed,
since <time.t> is now guaranteed to define time_t.
---
ChangeLog | 4 ++++
time/mktime.c | 1 -
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 78290d9..8403770 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-03-16 Paul Eggert <eggert@cs.ucla.edu>
+ mktime: merge <sys/types.h> change from gnulib
+ * time/mktime.c: Do not include <sys/types.h>; no longer needed,
+ since <time.t> is now guaranteed to define time_t.
+
mktime: merge HAVE_CONFIG_H change from gnulib
* time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
diff --git a/time/mktime.c b/time/mktime.c
index 0e5fde0..e4b3b66 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -32,7 +32,6 @@
# define LEAP_SECONDS_POSSIBLE 1
#endif
-#include <sys/types.h> /* Some systems define `time_t' here. */
#include <time.h>
#include <limits.h>
--
1.7.6.5