diff --git a/freeglut/freeglut/src/freeglut_internal.h b/freeglut/freeglut/src/freeglut_internal.h index effb2e0..17509ad 100644 --- a/freeglut/freeglut/src/freeglut_internal.h +++ b/freeglut/freeglut/src/freeglut_internal.h @@ -74,17 +74,20 @@ #include #include #include -#if TARGET_HOST_UNIX_X11 -#include -# if TIME_WITH_SYS_TIME +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_UNISTD_H +# include +#endif +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H # include -# include # else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif +# include # endif #endif diff --git a/freeglut/freeglut/src/freeglut_joystick.c b/freeglut/freeglut/src/freeglut_joystick.c index ec599f3..fb77bb4 100644 --- a/freeglut/freeglut/src/freeglut_joystick.c +++ b/freeglut/freeglut/src/freeglut_joystick.c @@ -89,7 +89,6 @@ # define JS_RETURN (sizeof(struct JS_DATA_TYPE)) # endif -# include # include # include diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index a62ffc0..7c214dd 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -30,8 +30,6 @@ #include #if TARGET_HOST_UNIX_X11 -#include -#include #include #include #elif TARGET_HOST_WIN32