]> granicus.if.org Git - graphviz/commitdiff
Remove usage and definition of HAVE_ERRNO_H
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 28 Dec 2016 17:21:50 +0000 (18:21 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 4 Jan 2017 23:30:13 +0000 (00:30 +0100)
The header "errno.h" is part of the standard C library, checking is
therefore not needed.

cmd/lefty/ws/x11/libfilereq/SelFile.c
configure.ac
lib/gvc/gvdevice.c
plugin/glitz/gvdevice_glitz.c
plugin/xlib/gvdevice_xlib.c
windows/include/config.h

index b9535b9c7de1c49229cc6b57156f989d87cd07fe..ccb1a8fb0827ed4b23d5dcbfae9cdadc4d0dba95 100644 (file)
 
 #include "config.h"
 #include <stdio.h>
-
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 
 #ifndef HAVE_STRERROR
 #  ifndef HAVE_ERRNO_DECL
index 51166c33c1608c65866881c40da1a15de9babac4..f832d9df69efa08b9af60149c73c18fa82371c97 100644 (file)
@@ -419,7 +419,7 @@ dnl Checks for header files
 # AC_HEADER_STDC
 AC_CHECK_HEADERS(malloc.h \
        fcntl.h search.h values.h limits.h termios.h \
-       errno.h unistd.h strings.h \
+       unistd.h strings.h \
        sys/time.h sys/types.h sys/select.h \
        sys/stat.h sys/mman.h \
        sys/ioctl.h sys/inotify.h crt_externs.h)
index b9588d0a17391a5f11e3c20927802207661714bc..4114a97a87a52d1457b4e39a1586215abbe61698 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <inttypes.h>
-
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 94664f88a5a175352b7e626aeab9b99077003f60..7013778904d37b59848027bea8364502016648e1 100644 (file)
@@ -33,9 +33,7 @@
 #ifdef HAVE_SYS_INOTIFY_H
 #include <sys/inotify.h>
 #endif
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 
 #include "gvplugin_device.h"
 
@@ -156,7 +154,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 && defined HAVE_ERRNO_H
+#if defined HAVE_SYS_TYPES_H && defined HAVE_UNISTD_H
    char *exec_argv[3] = {BROWSER, NULL, NULL};
    pid_t pid;
    int err;
index a7883fe091ec181ef50a290399dde71e7a90c0e3..9350e34d8d22d314846f193fd80635a0a8d681d8 100644 (file)
@@ -33,9 +33,7 @@
 #ifdef HAVE_SYS_INOTIFY_H
 #include <sys/inotify.h>
 #endif
-#ifdef HAVE_ERRNO_H
 #include <errno.h>
-#endif
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
@@ -147,7 +145,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 && defined HAVE_ERRNO_H
+#if defined HAVE_SYS_TYPES_H && defined HAVE_UNISTD_H
    char *exec_argv[3] = {BROWSER, NULL, NULL};
    pid_t pid;
    int err;
index d529387201cf348e18d6409243cfa00a3010ffd3..d3a26f873e282395aa5b8d8c2c0905e035229c4e 100644 (file)
@@ -59,9 +59,6 @@
 /* Define if errno externs are declared */
 /* #undef HAVE_ERRNO_DECL */
 
-/* Define to 1 if you have the <errno.h> header file. */
-#define HAVE_ERRNO_H 1
-
 /* Define if you have the expat library */
 #define HAVE_EXPAT 1