[PATCH 1/4] Clean up defines, and add an include to fix compilation when LINUX_INPUT is defined
Giuseppe Bilotta
giuseppe.bilotta at gmail.com
Tue Apr 24 16:38:33 PDT 2007
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
src/acecad.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/acecad.c b/src/acecad.c
index 43ac644..9d85a9e 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -47,7 +47,9 @@
#include <misc.h>
#include <xf86.h>
+#ifndef NEED_XF86_TYPES
#define NEED_XF86_TYPES
+#endif
#include <xf86_OSproc.h>
#include <xisb.h>
#include <xf86Xinput.h>
@@ -57,6 +59,10 @@
#include <string.h>
#include <stdio.h>
+#ifdef LINUX_INPUT
+#include <errno.h>
+#endif
+
/*****************************************************************************
* Local Headers
****************************************************************************/
@@ -70,7 +76,6 @@
* Local Variables
****************************************************************************/
-#define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
#undef read
#define read(a,b,c) xf86ReadSerial((a),(b),(c))
--
1.5.1.2
More information about the xorg
mailing list