summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2006-06-13 20:33:16 +0200
committerPeter Osterlund <petero2@telia.com>2006-07-07 09:34:26 +0200
commit168b6dbfcf61c6df458f420467dd0646fe994595 (patch)
tree960d4ab9511b93bf0a5aa9ea370ce64e47bb4598
parent7f1b7a4b4cd081ed5b306669e152994de719c381 (diff)
Fix compile errors when using Xorg 7.1.
Initial patch from VMiklos <vmiklos@frugalware.org>. Somewhat modified by me.
-rw-r--r--eventcomm.c5
-rw-r--r--ps2comm.h1
-rw-r--r--psmcomm.c2
-rw-r--r--psmcomm.h1
-rw-r--r--synaptics.c1
-rw-r--r--synproto.h1
6 files changed, 11 insertions, 0 deletions
diff --git a/eventcomm.c b/eventcomm.c
index 6f6de7f..1b0f8bc 100644
--- a/eventcomm.c
+++ b/eventcomm.c
@@ -18,6 +18,11 @@
*/
#include "eventcomm.h"
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
#include "synproto.h"
#include "synaptics.h"
#include <xf86.h>
diff --git a/ps2comm.h b/ps2comm.h
index d6f0a25..4a1a051 100644
--- a/ps2comm.h
+++ b/ps2comm.h
@@ -1,6 +1,7 @@
#ifndef _PS2COMM_H_
#define _PS2COMM_H_
+#include <unistd.h>
#include <sys/ioctl.h>
#include "xf86_OSproc.h"
diff --git a/psmcomm.c b/psmcomm.c
index e4df42b..257ec13 100644
--- a/psmcomm.c
+++ b/psmcomm.c
@@ -29,6 +29,8 @@
*/
#include "psmcomm.h"
+#include <errno.h>
+#include <string.h>
#include "synproto.h"
#include "synaptics.h"
#include "ps2comm.h" /* ps2_print_ident() */
diff --git a/psmcomm.h b/psmcomm.h
index 6d64df6..a3162a2 100644
--- a/psmcomm.h
+++ b/psmcomm.h
@@ -1,6 +1,7 @@
#ifndef _PSMCOMM_H_
#define _PSMCOMM_H_
+#include <unistd.h>
#include <sys/ioctl.h>
#include "freebsd_mouse.h"
diff --git a/synaptics.c b/synaptics.c
index 2a17f81..63edebb 100644
--- a/synaptics.c
+++ b/synaptics.c
@@ -59,6 +59,7 @@
* Standard Headers
****************************************************************************/
+#include <unistd.h>
#include <sys/ioctl.h>
#include <misc.h>
#include <xf86.h>
diff --git a/synproto.h b/synproto.h
index 8562a75..ecc4357 100644
--- a/synproto.h
+++ b/synproto.h
@@ -19,6 +19,7 @@
#ifndef _SYNPROTO_H_
#define _SYNPROTO_H_
+#include <unistd.h>
#include <sys/ioctl.h>
#include <xf86Xinput.h>
#include <xisb.h>