From 0fdb946c47e1c0c7ab0c3d9ad94127866cdc4d19 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 24 Apr 2022 09:00:16 -0700 Subject: [PATCH] remove stat.h detection and juggling I do not know which platforms offer stat.h, but it does not appear to be anything Graphviz currently supports. On all currently supported platforms (even Windows) this file lives at sys/stat.h which is detected separately. --- cmake/config_checks.cmake | 1 - config-cmake.h.in | 1 - configure.ac | 1 - lib/sfio/sfhdr.h | 7 ------- 4 files changed, 10 deletions(-) diff --git a/cmake/config_checks.cmake b/cmake/config_checks.cmake index 04620cda3..b9d9f1783 100644 --- a/cmake/config_checks.cmake +++ b/cmake/config_checks.cmake @@ -3,7 +3,6 @@ include(CheckIncludeFile) check_include_file( fcntl.h HAVE_FCNTL_H ) check_include_file( search.h HAVE_SEARCH_H ) -check_include_file( stat.h HAVE_STAT_H ) check_include_file( sys/inotify.h HAVE_SYS_INOTIFY_H ) check_include_file( sys/ioctl.h HAVE_SYS_IOCTL_H ) check_include_file( sys/mman.h HAVE_SYS_MMAN_H ) diff --git a/config-cmake.h.in b/config-cmake.h.in index fc826e593..485450354 100644 --- a/config-cmake.h.in +++ b/config-cmake.h.in @@ -1,7 +1,6 @@ // Include headers #cmakedefine HAVE_FCNTL_H #cmakedefine HAVE_SEARCH_H -#cmakedefine HAVE_STAT_H #cmakedefine HAVE_SYS_INOTIFY_H #cmakedefine HAVE_SYS_IOCTL_H #cmakedefine HAVE_SYS_MMAN_H diff --git a/configure.ac b/configure.ac index 0ace0c7b4..954e5eee1 100644 --- a/configure.ac +++ b/configure.ac @@ -440,7 +440,6 @@ dnl Checks for header files # AC_HEADER_STDC AC_CHECK_HEADERS( \ fcntl.h search.h stropts.h termios.h \ - stat.h \ sys/time.h sys/types.h sys/select.h sys/socket.h \ sys/stat.h sys/mman.h \ sys/ioctl.h sys/inotify.h) diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 3100e5d37..756a4d839 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -48,13 +48,6 @@ extern "C" { #ifdef HAVE_SYS_STAT_H # include -# undef HAVE_SYS_STAT_H -# define HAVE_SYS_STAT_H 1 -#else -# ifdef HAVE_STAT_H -# include -# define HAVE_SYS_STAT_H 1 -# endif #endif /*HAVE_SYS_STAT_H*/ #include -- 2.40.0