diff src/video/x11/SDL_x11events.c @ 4669:62e6a6e9720b

Fixed x11 compile bugs.
author jimtla
date Thu, 22 Jul 2010 08:12:28 +0400
parents 03dcb795c583
children 5378f2d0754f
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Sat Jul 17 23:16:57 2010 -0400
+++ b/src/video/x11/SDL_x11events.c	Thu Jul 22 08:12:28 2010 +0400
@@ -37,10 +37,11 @@
 
 #include <stdio.h>
 
+#ifdef HAVE_LINUX_INPUT_H
 //Touch Input/event* includes
 #include <linux/input.h>
 #include <fcntl.h>
-
+#endif
 /*#define DEBUG_XEVENTS*/
 
 static void
@@ -401,7 +402,7 @@
         X11_DispatchEvent(_this);
     }
 
-
+#ifdef HAVE_LINUX_INPUT_H
     /* Process Touch events - TODO When X gets touch support, use that instead*/
     int i = 0,rd;
     char name[256];
@@ -472,6 +473,7 @@
 	    }
 	}
     }
+#endif
 }
 
 /* This is so wrong it hurts */