changeset 8223:ca249819379f

* lib/getdate.h (includes): Include <time.h>, not "timespec.h". * lib/stat-time.h (includes): Likewise. * lib/utimecmp.c (includes): Likewise. * lib/utimens.h (includes): Likewise. * lib/getdate.y (includes): Also include "timespec.h" for use internal to the module. * modules/utimens (Depends-on): Revert yesterday's patch. * modules/nanosleep (Depends-on): Add missing dependency.
author Eric Blake <ebb9@byu.net>
date Fri, 23 Feb 2007 18:25:21 +0000
parents 71d0fb7c1252
children 8c91af0a7ea5
files ChangeLog lib/getdate.h lib/getdate.y lib/stat-time.h lib/utimecmp.c lib/utimens.h modules/nanosleep modules/utimens
diffstat 8 files changed, 24 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Feb 22 23:33:19 2007 +0000
+++ b/ChangeLog	Fri Feb 23 18:25:21 2007 +0000
@@ -1,3 +1,14 @@
+2007-02-23  Eric Blake  <ebb9@byu.net>
+
+	* lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
+	* lib/stat-time.h (includes): Likewise.
+	* lib/utimecmp.c (includes): Likewise.
+	* lib/utimens.h (includes): Likewise.
+	* lib/getdate.y (includes): Also include "timespec.h" for use
+	internal to the module.
+	* modules/utimens (Depends-on): Revert yesterday's patch.
+	* modules/nanosleep (Depends-on): Add missing dependency.
+
 2007-02-22  Bruno Haible  <bruno@clisp.org>
 
 	* lib/glob.c: Don't include getlogin_r.h.
@@ -369,7 +380,7 @@
 	long lines.
 
 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	* modules/tmpfile: New file.
 	* lib/tmpfile.c: New file.
@@ -963,7 +974,7 @@
 
 2007-02-03  Jim Meyering  <jim@meyering.net>
 
-        Give tools a better chance to allocate space for very large buffers.
+	Give tools a better chance to allocate space for very large buffers.
 	* lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
 
 	Make pwd and readlink work also when run with an unreadable parent dir
--- a/lib/getdate.h	Thu Feb 22 23:33:19 2007 +0000
+++ b/lib/getdate.h	Fri Feb 23 18:25:21 2007 +0000
@@ -1,6 +1,7 @@
 /* Parse a string into an internal time stamp.
 
-   Copyright (C) 1995, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1997, 1998, 2003, 2004, 2007 Free Software
+   Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,6 +18,6 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #include <stdbool.h>
-#include "timespec.h"
+#include <time.h>
 
 bool get_date (struct timespec *, char const *, struct timespec const *);
--- a/lib/getdate.y	Thu Feb 22 23:33:19 2007 +0000
+++ b/lib/getdate.y	Fri Feb 23 18:25:21 2007 +0000
@@ -1,7 +1,7 @@
 %{
 /* Parse a string into an internal time stamp.
 
-   Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006 Free Software
+   Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -35,6 +35,7 @@
 #include <config.h>
 
 #include "getdate.h"
+#include "timespec.h"
 
 /* There's no need to extend the stack, so there's no need to involve
    alloca.  */
--- a/lib/stat-time.h	Thu Feb 22 23:33:19 2007 +0000
+++ b/lib/stat-time.h	Fri Feb 23 18:25:21 2007 +0000
@@ -1,6 +1,6 @@
 /* stat-related time functions.
 
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005, 2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
 #ifndef STAT_TIME_H
 #define STAT_TIME_H 1
 
-#include "timespec.h"
+#include <time.h>
 
 /* STAT_TIMESPEC (ST, ST_XTIM) is the ST_XTIM member for *ST of type
    struct timespec, if available.  If not, then STAT_TIMESPEC_NS (ST,
--- a/lib/utimecmp.c	Thu Feb 22 23:33:19 2007 +0000
+++ b/lib/utimecmp.c	Fri Feb 23 18:25:21 2007 +0000
@@ -1,6 +1,6 @@
 /* utimecmp.c -- compare file time stamps
 
-   Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -26,10 +26,10 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <time.h>
 #include "hash.h"
 #include "intprops.h"
 #include "stat-time.h"
-#include "timespec.h"
 #include "utimens.h"
 #include "verify.h"
 #include "xalloc.h"
--- a/lib/utimens.h	Thu Feb 22 23:33:19 2007 +0000
+++ b/lib/utimens.h	Fri Feb 23 18:25:21 2007 +0000
@@ -1,3 +1,3 @@
-#include "timespec.h"
+#include <time.h>
 int futimens (int, char const *, struct timespec const [2]);
 int utimens (char const *, struct timespec const [2]);
--- a/modules/nanosleep	Thu Feb 22 23:33:19 2007 +0000
+++ b/modules/nanosleep	Fri Feb 23 18:25:21 2007 +0000
@@ -8,6 +8,7 @@
 Depends-on:
 clock-time
 extensions
+gettime
 stdbool
 sys_time
 time
--- a/modules/utimens	Thu Feb 22 23:33:19 2007 +0000
+++ b/modules/utimens	Fri Feb 23 18:25:21 2007 +0000
@@ -11,7 +11,6 @@
 Depends-on:
 sys_time
 time
-timespec
 
 configure.ac:
 gl_UTIMENS