X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_input_devices.c;h=04f5fd5d5c11fa79e43a3b6a46094c70be3e7c5f;hb=b0e5b06bca36a249ecba1716e73ef126075a1e04;hp=1734a424c6a130e65ed5a96f23692196c42525e4;hpb=7fdce1253e14170b6cb933f13c1f2a1644c93793;p=freeglut diff --git a/src/freeglut_input_devices.c b/src/freeglut_input_devices.c index 1734a42..04f5fd5 100755 --- a/src/freeglut_input_devices.c +++ b/src/freeglut_input_devices.c @@ -36,17 +36,15 @@ #include "freeglut_internal.h" #if TARGET_HOST_POSIX_X11 +#ifdef HAVE_ERRNO_H #include +#endif #include -#include -#include #include #include -#include #include #include #include -#include typedef struct { int fd; @@ -136,9 +134,9 @@ int fgInputDeviceDetect( void ) */ void fgInitialiseInputDevices ( void ) { - const char *dial_device=NULL; if( !fgState.InputDevsInitialised ) { + const char *dial_device=NULL; dial_device = getenv ( "GLUT_DIALS_SERIAL" ); #if TARGET_HOST_MS_WINDOWS if (!dial_device){