Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_eventtouch.c @ 4669:62e6a6e9720b
Fixed x11 compile bugs.
author | jimtla |
---|---|
date | Thu, 22 Jul 2010 08:12:28 +0400 |
parents | eea1bf53effa |
children | f8431f66613d |
line wrap: on
line diff
--- a/src/video/x11/SDL_eventtouch.c Sat Jul 17 23:16:57 2010 -0400 +++ b/src/video/x11/SDL_eventtouch.c Thu Jul 22 08:12:28 2010 +0400 @@ -24,12 +24,15 @@ #include "SDL_eventtouch.h" #include "../../events/SDL_touch_c.h" +#ifdef HAVE_LINUX_INPUT_H #include <linux/input.h> #include <fcntl.h> +#endif void X11_InitTouch(_THIS) { +#ifdef HAVE_LINUX_INPUT_H printf("Initializing touch...\n"); FILE *fd; @@ -109,6 +112,7 @@ } close(fd); +#endif } void