From 439e8027f208f0db1a0f25ed510ecb414cb9e77b Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Sun, 23 Jan 2005 17:44:58 +0000 Subject: [PATCH] Testing for errno.h is overkill. :-) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@563 7f0cb862-5218-0410-a997-914c9d46530a --- configure.ac | 2 +- src/freeglut_joystick.c | 4 +--- src/freeglut_main.c | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 45ba8cc..d77c216 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AC_SUBST([LIBXXF86VM]) # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h errno.h fcntl.h limits.h sys/ioctl.h sys/param.h sys/time.h]) +AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h fcntl.h limits.h sys/ioctl.h sys/param.h sys/time.h]) AC_HEADER_TIME save_CFLAGS="$CFLAGS" diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 080b71f..3c2fa9e 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -72,9 +72,7 @@ # if HAVE_FCNTL_H # include # endif -# if HAVE_ERRNO_H -# include -# endif +# include # if defined(__FreeBSD__) || defined(__NetBSD__) /* XXX The below hack is done until freeglut's autoconf is updated. */ # define HAVE_USB_JS 1 diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 0ab70ec..d464ca4 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -27,9 +27,7 @@ #include #include "freeglut_internal.h" -#if HAVE_ERRNO_H -# include -#endif +#include #include #if HAVE_VPRINTF # define VFPRINTF(s,f,a) vfprintf((s),(f),(a)) -- 1.7.10.4