Skip to content

Commit

Permalink
core: remove HAVE_UTIME_H
Browse files Browse the repository at this point in the history
That header is in POSIX.1-2001 and should always be present.
  • Loading branch information
arogge committed May 25, 2020
1 parent 3fd4076 commit 361a25a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions core/cmake/BareosCheckIncludes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ check_include_files(sys/nvpair.h HAVE_SYS_NVPAIR_H)
check_include_files("sys/types.h;sys/tape.h" HAVE_SYS_TAPE_H)

check_include_files(sys/time.h HAVE_SYS_TIME_H)
check_include_files(utime.h HAVE_UTIME_H)
check_include_files(NSI HAVE_NSI)

check_include_file_cxx(cxxabi.h HAVE_CXXABI_H)
check_include_files(curses.h HAVE_CURSES_H)
Expand All @@ -74,7 +72,6 @@ check_include_files(rados/librados.h HAVE_RADOS_LIBRADOS_H)
check_include_files(radosstriper/libradosstriper.h
HAVE_RADOSSTRIPER_LIBRADOSSTRIPER_H)

# CHECK_INCLUDE_FILES(glusterfs/glusterfs.h HAVE_GLUSTERFS_GLUSTERFS_H)
check_include_files(glusterfs/api/glfs.h HAVE_GLUSTERFS_API_GLFS_H)

check_include_files(sys/prctl.h HAVE_SYS_PRCTL_H)
Expand Down
7 changes: 0 additions & 7 deletions core/src/findlib/find.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,7 @@
#endif

#if !defined(HAVE_UTIMES) && !defined(HAVE_LUTIMES)
#if HAVE_UTIME_H
#include <utime.h>
#else
struct utimbuf {
long actime;
long modtime;
};
#endif
#endif

#define MODE_RALL (S_IRUSR | S_IRGRP | S_IROTH)
Expand Down
3 changes: 0 additions & 3 deletions core/src/include/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,6 @@ extern char WIN_VERSION[];
// Define to 1 if you have the `utimes' function
#cmakedefine HAVE_UTIMES @HAVE_UTIMES@

// Define to 1 if you have the <utime.h> header file
#cmakedefine HAVE_UTIME_H @HAVE_UTIME_H@

// Define to 1 if you have u_int
#cmakedefine HAVE_U_INT @HAVE_U_INT@

Expand Down
3 changes: 0 additions & 3 deletions core/src/win32/compat/include/mingwconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
/* Define if you have GCC */
#define HAVE_GCC 1

/* Define to 1 if utime.h exists and declares struct utimbuf. */
#define HAVE_UTIME_H 1

/* Data types */
#define HAVE_U_INT 1
#define HAVE_INTXX_T 1
Expand Down

0 comments on commit 361a25a

Please sign in to comment.