X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=080b71fb079da301e258f73097c3dd53aa9cb8c7;hb=f075b2126dff4d88bc2811281f0d27e7c0581ab4;hp=061a03898d86e0bd14784f52e65888a2f9953194;hpb=db165b756c33137939afe0d77b8c01d120892693;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 061a038..080b71f 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -31,12 +31,11 @@ * Many thanks for Steve Baker for permission to pull from that library. */ -#if defined( __FreeBSD__ ) || defined( __NetBSD__ ) -# include -#endif - #include #include "freeglut_internal.h" +#if HAVE_SYS_PARAM_H +# include +#endif /* * Initial defines from "js.h" starting around line 33 with the existing "freeglut_joystick.c" @@ -61,7 +60,6 @@ # define _JS_MAX_AXES 8 # include # include -# include # include #endif @@ -74,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 @@ -94,8 +95,6 @@ # define JS_RETURN (sizeof(struct JS_DATA_TYPE)) # endif -# include - # if defined(__linux__) # include