# define _JS_MAX_AXES 8
# include <windows.h>
# include <mmsystem.h>
-# include <string.h>
# include <regstr.h>
#endif
# if HAVE_FCNTL_H
# include <fcntl.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
# define JS_RETURN (sizeof(struct JS_DATA_TYPE))
# endif
-# include <errno.h>
-
# if defined(__linux__)
# include <linux/joystick.h>