bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

utime.h cleanup for coreutils


From: Paul Eggert
Subject: utime.h cleanup for coreutils
Date: Fri, 23 Sep 2005 13:37:38 -0700

I installed the following minor cleanup: system.h and jm-macros.m4 were
defining symbols that are no longer used, since the utime stuff now all
goes through a gnulib module.

2005-09-23  Paul Eggert  <address@hidden>

        * src/system.h: Don't include utime.h; not needed.
        (struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
        * m4/jm-macros.m4 (gl_MACROS): Don't require
        gl_CHECK_TYPE_STRUCT_UTIMBUF.
        (gl_CHECK_ALL_HEADERS): Don't check for utime.h.

Index: m4/jm-macros.m4
===================================================================
RCS file: /fetish/cu/m4/jm-macros.m4,v
retrieving revision 1.230
diff -p -u -r1.230 jm-macros.m4
--- m4/jm-macros.m4     23 Sep 2005 19:59:07 -0000      1.230
+++ m4/jm-macros.m4     23 Sep 2005 20:34:37 -0000
@@ -1,4 +1,4 @@
-#serial 93   -*- autoconf -*-
+#serial 94   -*- autoconf -*-
 
 dnl Misc type-related macros for coreutils.
 
@@ -42,7 +42,6 @@ AC_DEFUN([gl_MACROS],
 
   AC_REQUIRE([gl_HOST_OS])
   AC_REQUIRE([gl_ASSERT])
-  AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO])
   AC_REQUIRE([gl_CHECK_DECLS])
@@ -197,7 +196,6 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS],
     sys/wait.h \
     syslog.h \
     termios.h \
-    utime.h \
   )
   AC_CHECK_HEADERS(sys/mount.h sys/sysctl.h, [], [],
     [AC_INCLUDES_DEFAULT
Index: src/system.h
===================================================================
RCS file: /fetish/cu/src/system.h,v
retrieving revision 1.135
diff -p -u -r1.135 system.h
--- src/system.h        22 Sep 2005 06:33:40 -0000      1.135
+++ src/system.h        23 Sep 2005 20:34:39 -0000
@@ -92,20 +92,6 @@ you must include <sys/types.h> before in
 # define makedev(maj, min)  mkdev (maj, min)
 #endif
 
-#if HAVE_UTIME_H
-# include <utime.h>
-#endif
-
-/* Some systems (even some that do have <utime.h>) don't declare this
-   structure anywhere.  */
-#ifndef HAVE_STRUCT_UTIMBUF
-struct utimbuf
-{
-  long actime;
-  long modtime;
-};
-#endif
-
 /* Don't use bcopy!  Use memmove if source and destination may overlap,
    memcpy otherwise.  */
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]