X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_input_devices.c;h=0dcb97f7c9a1d9e70376c52ed7004926db2c1e8f;hb=ac26c64653954569627ad5413240cbd8453cd814;hp=1734a424c6a130e65ed5a96f23692196c42525e4;hpb=7fdce1253e14170b6cb933f13c1f2a1644c93793;p=freeglut diff --git a/src/freeglut_input_devices.c b/src/freeglut_input_devices.c index 1734a42..0dcb97f 100755 --- a/src/freeglut_input_devices.c +++ b/src/freeglut_input_devices.c @@ -36,7 +36,9 @@ #include "freeglut_internal.h" #if TARGET_HOST_POSIX_X11 +#if HAVE_ERRNO_H #include +#endif #include #include #include @@ -136,9 +138,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){