Commit 31daeae0 authored by Erwin Janssen's avatar Erwin Janssen

Remove usage and definition of HAVE_ERRNO_H

The header "errno.h" is part of the standard C library, checking is
therefore not needed.
parent 4d497eb3
......@@ -60,10 +60,7 @@
#include "config.h"
#include <stdio.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#ifndef HAVE_STRERROR
# ifndef HAVE_ERRNO_DECL
......
......@@ -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)
......
......@@ -21,10 +21,7 @@
#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
......
......@@ -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;
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment