diff -r 6bb657898f55 src/video/x11/SDL_x11touch.c --- a/src/video/x11/SDL_x11touch.c Tue Feb 28 21:58:36 2012 -0500 +++ b/src/video/x11/SDL_x11touch.c Sat Mar 17 11:31:11 2012 +0100 @@ -38,6 +38,7 @@ #ifdef SDL_INPUT_LINUXEV FILE *fd; fd = fopen("/proc/bus/input/devices","r"); + if (!fd) return; int i = 0; int tsfd;