Testing for errno.h is overkill. :-)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@563 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-01-23 17:44:58 +00:00
parent 29e57cdace
commit 61ddeb2e75
3 changed files with 3 additions and 7 deletions

View File

@ -23,7 +23,7 @@ AC_SUBST([LIBXXF86VM])
# Checks for header files. # Checks for header files.
AC_HEADER_STDC 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 AC_HEADER_TIME
save_CFLAGS="$CFLAGS" save_CFLAGS="$CFLAGS"

View File

@ -72,9 +72,7 @@
# if HAVE_FCNTL_H # if HAVE_FCNTL_H
# include <fcntl.h> # include <fcntl.h>
# endif # endif
# if HAVE_ERRNO_H
# include <errno.h> # include <errno.h>
# endif
# if defined(__FreeBSD__) || defined(__NetBSD__) # if defined(__FreeBSD__) || defined(__NetBSD__)
/* XXX The below hack is done until freeglut's autoconf is updated. */ /* XXX The below hack is done until freeglut's autoconf is updated. */
# define HAVE_USB_JS 1 # define HAVE_USB_JS 1

View File

@ -27,9 +27,7 @@
#include <GL/freeglut.h> #include <GL/freeglut.h>
#include "freeglut_internal.h" #include "freeglut_internal.h"
#if HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif
#include <stdarg.h> #include <stdarg.h>
#if HAVE_VPRINTF #if HAVE_VPRINTF
# define VFPRINTF(s,f,a) vfprintf((s),(f),(a)) # define VFPRINTF(s,f,a) vfprintf((s),(f),(a))