X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=080b71fb079da301e258f73097c3dd53aa9cb8c7;hb=c24efb9241080a043193b67c6a9718312fed8d07;hp=781d0ddb47ed713ee6ffeb343221b5e578d52de2;hpb=1652c4a486eb064ee27d475b317d8bd22ea9e040;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 781d0dd..080b71f 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -60,7 +60,6 @@ # define _JS_MAX_AXES 8 # include # include -# include # include #endif @@ -73,6 +72,9 @@ # if HAVE_FCNTL_H # include # endif +# if HAVE_ERRNO_H +# include +# endif # if defined(__FreeBSD__) || defined(__NetBSD__) /* XXX The below hack is done until freeglut's autoconf is updated. */ # define HAVE_USB_JS 1 @@ -93,8 +95,6 @@ # define JS_RETURN (sizeof(struct JS_DATA_TYPE)) # endif -# include - # if defined(__linux__) # include