summaryrefslogtreecommitdiff
path: root/src/vmmouse_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmmouse_proto.h')
-rw-r--r--src/vmmouse_proto.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/vmmouse_proto.h b/src/vmmouse_proto.h
index 6a08e27..a2eb1e4 100644
--- a/src/vmmouse_proto.h
+++ b/src/vmmouse_proto.h
@@ -36,10 +36,20 @@
#ifndef _VMMOUSE_PROTO_H_
#define _VMMOUSE_PROTO_H_
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdint.h>
+
+#ifdef HAVE_XORG_SERVER_1_1_0
#include <unistd.h>
+#else
+#include "xf86_libc.h"
+#endif
-#if !defined __i386__ && !defined __x86_64__
+#if !defined __i386__ && !defined __x86_64__
#error The vmmouse protocol is only supported on x86 architectures.
#endif