]> granicus.if.org Git - graphviz/commitdiff
remove no longer used unistd.h detection
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 18 Apr 2022 02:00:39 +0000 (19:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Apr 2022 15:52:41 +0000 (08:52 -0700)
Gitlab: #2204

cmake/config_checks.cmake
config-cmake.h.in
configure.ac
plugin/lasi/gvrender_lasi.cpp
plugin/xlib/gvdevice_xlib.c
windows/include/config.h

index 78a49008688f8b6a0e0ae06c56b78ef449d2d65b..04620cda3b00dee59347104875594204666cbe5e 100644 (file)
@@ -12,7 +12,6 @@ check_include_file( sys/stat.h          HAVE_SYS_STAT_H         )
 check_include_file( sys/time.h          HAVE_SYS_TIME_H         )
 check_include_file( sys/types.h         HAVE_SYS_TYPES_H        )
 check_include_file( termios.h           HAVE_TERMIOS_H          )
-check_include_file( unistd.h            HAVE_UNISTD_H           )
 check_include_file( X11/Intrinsic.h     HAVE_X11_INTRINSIC_H    )
 check_include_file( X11/Xaw/Text.h      HAVE_X11_XAW_TEXT_H     )
 check_include_file( getopt.h            HAVE_GETOPT_H           )
index 0fdca39c3359923e702c2b543dcbb7e5aec0b29e..fc826e593dddf51ba7df6702174eb8f6868aaa21 100644 (file)
@@ -10,7 +10,6 @@
 #cmakedefine HAVE_SYS_TIME_H
 #cmakedefine HAVE_SYS_TYPES_H
 #cmakedefine HAVE_TERMIOS_H
-#cmakedefine HAVE_UNISTD_H
 #cmakedefine HAVE_X11_INTRINSIC_H
 #cmakedefine HAVE_X11_XAW_TEXT_H
 #cmakedefine HAVE_GETOPT_H
index 1ed6b712ff01cd9b3a2617048336bb942e8d0458..0ace0c7b400ce58d8d8dc227f63c8fc77a5530d2 100644 (file)
@@ -440,7 +440,7 @@ dnl Checks for header files
 # AC_HEADER_STDC
 AC_CHECK_HEADERS( \
        fcntl.h search.h stropts.h termios.h \
-       unistd.h stat.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 673451aef3ee7efb7caf9813ec2675f71d672126..3540dea839368121bd4b21b4e79767e81974c5e9 100644 (file)
@@ -19,9 +19,6 @@
 #ifdef HAVE_FCNTL_H
 #undef HAVE_FCNTL_H
 #endif
-#ifdef HAVE_UNISTD_H
-#undef HAVE_UNISTD_H
-#endif
 #include "config.h"
 
 #include <gvc/gvplugin_render.h>
index 668afbedf333e9bb0c087b21d2c7aa749988f01e..db903bfc812d94d4545e971143c19a60ecae7127 100644 (file)
@@ -151,7 +151,7 @@ static Visual *find_argb_visual(Display * dpy, int scr)
 
 static void browser_show(GVJ_t *job)
 {
-#if defined HAVE_SYS_TYPES_H && defined HAVE_UNISTD_H
+#ifdef HAVE_SYS_TYPES_H
    char *exec_argv[3] = {BROWSER, NULL, NULL};
    pid_t pid;
 
index bf3dd8b61811c6b94a07fc1532a06209907e4adf..c2152ac33056d44ad250d2401aebaa07b870229c 100644 (file)
 /* Define if triangle.[ch] are available. */
 /* #undef HAVE_TRIANGLE */
 
-/* Define to 1 if you have the <unistd.h> header file. */
-//#define HAVE_UNISTD_H 1
-
 /* Define to 1 if you have the <X11/Intrinsic.h> header file. */
 /* #undef HAVE_X11_INTRINSIC_H */