]> granicus.if.org Git - graphviz/commitdiff
remove stat.h detection and juggling
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Apr 2022 16:00:16 +0000 (09:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 29 Apr 2022 00:01:33 +0000 (17:01 -0700)
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
config-cmake.h.in
configure.ac
lib/sfio/sfhdr.h

index 04620cda3b00dee59347104875594204666cbe5e..b9d9f178394f55374c77e0604209098d2ea9605d 100644 (file)
@@ -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         )
index fc826e593dddf51ba7df6702174eb8f6868aaa21..48545035408f5b82a69a67514e0e3c96227e7e30 100644 (file)
@@ -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
index 0ace0c7b400ce58d8d8dc227f63c8fc77a5530d2..954e5eee19c86f6edac1f608a7a2d4c520f299f6 100644 (file)
@@ -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)
index 3100e5d37614c7e2184f24027dc9dbddd00f69fd..756a4d83985dbb1e065385f479584a6e08e0a8c7 100644 (file)
@@ -48,13 +48,6 @@ extern "C" {
 
 #ifdef HAVE_SYS_STAT_H
 #      include <sys/stat.h>
-#      undef HAVE_SYS_STAT_H
-#      define HAVE_SYS_STAT_H 1
-#else
-#      ifdef HAVE_STAT_H
-#              include <stat.h>
-#              define  HAVE_SYS_STAT_H 1
-#      endif
 #endif /*HAVE_SYS_STAT_H*/
 
 #include       <fcntl.h>