Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles
--- a/src/video/x11/SDL_x11touch.c Mon Jun 25 11:10:34 2012 -0400
+++ b/src/video/x11/SDL_x11touch.c Mon Jul 02 08:33:10 2012 -0400
@@ -46,6 +46,7 @@
#ifdef SDL_INPUT_LINUXEV
FILE *fd;
fd = fopen("/proc/bus/input/devices","r");
+ if (!fd) return;
int i = 0;
int tsfd;