projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing bug 3292122 from Nigel Stewart (thanks, Nigel) so that "freeglut" will build...
[freeglut]
/
src
/
freeglut_input_devices.c
diff --git
a/src/freeglut_input_devices.c
b/src/freeglut_input_devices.c
index
1734a42
..
04f5fd5
100755
(executable)
--- 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
#include "freeglut_internal.h"
#if TARGET_HOST_POSIX_X11
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#include <errno.h>
+#endif
#include <sys/ioctl.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <termios.h>
#include <fcntl.h>
#include <string.h>
#include <termios.h>
#include <fcntl.h>
-#include <sys/types.h>
typedef struct {
int fd;
typedef struct {
int fd;
@@
-136,9
+134,9
@@
int fgInputDeviceDetect( void )
*/
void fgInitialiseInputDevices ( void )
{
*/
void fgInitialiseInputDevices ( void )
{
- const char *dial_device=NULL;
if( !fgState.InputDevsInitialised )
{
if( !fgState.InputDevsInitialised )
{
+ const char *dial_device=NULL;
dial_device = getenv ( "GLUT_DIALS_SERIAL" );
#if TARGET_HOST_MS_WINDOWS
if (!dial_device){
dial_device = getenv ( "GLUT_DIALS_SERIAL" );
#if TARGET_HOST_MS_WINDOWS
if (!dial_device){