#include "freeglut_internal.h"
#if TARGET_HOST_POSIX_X11
+#if HAVE_ERRNO_H
#include <errno.h>
+#endif
#include <sys/ioctl.h>
#include <sys/time.h>
#include <time.h>
*/
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){