summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-07 12:33:44 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-07 12:33:44 -0700
commit8f5aa38abf1158a789b5528df9d98826342e30cf (patch)
tree60bcd65c9e0acecce0e9997906aae94d8c3e44c9 /dix
parent101ae616962c355388722e05ab8413eb5f5c3402 (diff)
fix compiler warning about XKB_IN_SERVER redefinition
Diffstat (limited to 'dix')
-rw-r--r--dix/devices.c2
-rw-r--r--dix/dispatch.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/dix/devices.c b/dix/devices.c
index ef1bdf354..c7d3494e8 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -66,7 +66,9 @@ SOFTWARE.
#include "cursorstr.h"
#include "dixstruct.h"
#include "site.h"
+#ifndef XKB_IN_SERVER
#define XKB_IN_SERVER
+#endif
#ifdef XKB
#include <X11/extensions/XKBsrv.h>
#endif
diff --git a/dix/dispatch.c b/dix/dispatch.c
index c8ee8d610..04e2ba11f 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -115,7 +115,9 @@ int ProcInitialConnection();
#include <X11/extensions/Xagsrv.h>
#endif
#ifdef XKB
+#ifndef XKB_IN_SERVER
#define XKB_IN_SERVER
+#endif
#include "inputstr.h"
#include <X11/extensions/XKBsrv.h>
#endif