Testing for errno.h is overkill. :-)
authorSven Panne <sven.panne@aedion.de>
Sun, 23 Jan 2005 17:44:58 +0000 (17:44 +0000)
committerSven Panne <sven.panne@aedion.de>
Sun, 23 Jan 2005 17:44:58 +0000 (17:44 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@563 7f0cb862-5218-0410-a997-914c9d46530a

configure.ac
src/freeglut_joystick.c
src/freeglut_main.c

index 45ba8cc..d77c216 100644 (file)
@@ -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"
index 080b71f..3c2fa9e 100644 (file)
@@ -72,9 +72,7 @@
 #    if HAVE_FCNTL_H
 #        include <fcntl.h>
 #    endif
-#    if HAVE_ERRNO_H
-#        include <errno.h>
-#    endif
+#    include <errno.h>
 #    if defined(__FreeBSD__) || defined(__NetBSD__)
 /* XXX The below hack is done until freeglut's autoconf is updated. */
 #        define HAVE_USB_JS    1
index 0ab70ec..d464ca4 100644 (file)
@@ -27,9 +27,7 @@
 
 #include <GL/freeglut.h>
 #include "freeglut_internal.h"
-#if HAVE_ERRNO_H
-#    include <errno.h>
-#endif
+#include <errno.h>
 #include <stdarg.h>
 #if HAVE_VPRINTF
 #    define VFPRINTF(s,f,a) vfprintf((s),(f),(a))