From 236efdc4ce8c093aae33a1236f56fcbf7f6cffd4 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sat, 23 Jun 2007 22:59:13 +0000 Subject: [PATCH] Don't test for errno.h, because it's ANSI, and because errno is used regardless of the test. --- config.h.in | 3 --- configure | 8 +++----- configure.ac | 5 ++--- x11/pdcx11.h | 6 ++---- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/config.h.in b/config.h.in index 80235ae6..28e9e48e 100644 --- a/config.h.in +++ b/config.h.in @@ -9,9 +9,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DL_H -/* Define to 1 if you have the header file. */ -#undef HAVE_ERRNO_H - /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H diff --git a/configure b/configure index e3b9ada0..4bffd2e4 100755 --- a/configure +++ b/configure @@ -3918,13 +3918,11 @@ fi - for ac_header in fcntl.h \ sys/time.h \ sys/select.h \ dlfcn.h \ - dl.h \ - errno.h + dl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` @@ -5367,7 +5365,7 @@ if test "$DYN_COMP" = ""; then echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6; } cat > conftest.$ac_ext <&6; } mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5' cat > conftest.$ac_ext < @@ -47,9 +47,7 @@ # endif #endif -#ifdef HAVE_ERRNO_H -# include -#endif +#include #include #include