Remove compat/utime.h, it was only useful for ancient systems that

are no longer capable of compiling sudo.
This commit is contained in:
Todd C. Miller
2015-03-03 16:57:55 -07:00
parent 1592192cef
commit a7edf7d984
7 changed files with 5 additions and 42 deletions

View File

@@ -61,7 +61,6 @@ include/compat/nss_dbdefs.h
include/compat/sha2.h
include/compat/stdbool.h
include/compat/timespec.h
include/compat/utime.h
include/sudo_alloc.h
include/sudo_compat.h
include/sudo_conf.h

View File

@@ -835,9 +835,6 @@
/* Define to 1 if you have the `utimes' function. */
#undef HAVE_UTIMES
/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Define to 1 if you have the <utmpx.h> header file. */
#undef HAVE_UTMPX_H

3
configure vendored
View File

@@ -2641,7 +2641,6 @@ as_fn_append ac_header_list " malloc.h"
as_fn_append ac_header_list " netgroup.h"
as_fn_append ac_header_list " paths.h"
as_fn_append ac_header_list " spawn.h"
as_fn_append ac_header_list " utime.h"
as_fn_append ac_header_list " utmpx.h"
as_fn_append ac_header_list " sys/sockio.h"
as_fn_append ac_header_list " sys/bsdtypes.h"
@@ -16830,8 +16829,6 @@ done

View File

@@ -2191,7 +2191,7 @@ AC_HEADER_DIRENT
AC_HEADER_TIME
AC_HEADER_STDBOOL
AC_HEADER_MAJOR
AC_CHECK_HEADERS_ONCE([malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h])
AC_CHECK_HEADERS_ONCE([malloc.h netgroup.h paths.h spawn.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h])
AC_CHECK_HEADERS([endian.h] [sys/endian.h] [machine/endian.h], [break])
AC_CHECK_HEADERS([procfs.h] [sys/procfs.h], [AC_CHECK_MEMBERS(struct psinfo.pr_ttydev, [AC_CHECK_FUNCS([_ttyname_dev])], [], [AC_INCLUDES_DEFAULT
#ifdef HAVE_PROCFS_H

View File

@@ -1,28 +0,0 @@
/*
* Copyright (c) 1996, 1998-2005, 2010
* Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _UTIME_H
#define _UTIME_H
struct utimbuf {
time_t actime; /* access time */
time_t modtime; /* mod time */
};
int utime(const char *, const struct utimbuf *);
#endif /* _UTIME_H */

View File

@@ -535,7 +535,7 @@ ttysize.lo: $(srcdir)/ttysize.c $(incdir)/compat/stdbool.h \
$(incdir)/sudo_queue.h $(incdir)/sudo_util.h \
$(top_builddir)/config.h
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/ttysize.c
utimens.lo: $(srcdir)/utimens.c $(incdir)/compat/timespec.h \
$(incdir)/compat/utime.h $(incdir)/sudo_compat.h \
$(top_builddir)/config.h
utimens.lo: $(srcdir)/utimens.c $(incdir)/compat/stdbool.h \
$(incdir)/compat/timespec.h $(incdir)/sudo_compat.h \
$(incdir)/sudo_util.h $(top_builddir)/config.h
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/utimens.c

View File

@@ -29,10 +29,8 @@
#ifndef HAVE_STRUCT_TIMESPEC
# include "compat/timespec.h"
#endif
#ifdef HAVE_UTIME_H
#if !defined(HAVE_UTIMES) || defined(HAVE_FUTIME)
# include <utime.h>
#else
# include "compat/utime.h"
#endif
#include "sudo_compat.h"