summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-07-03 07:02:09 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-07-03 07:02:09 +0000
commite03198972ca78b03ad13cb49112c03a052bb763b (patch)
tree1278f4b1a41b11511b0f5c2932191e44f0f9d8d3 /xkb
parentb8aef6c474ffc6d637bec178674898ea95ccde47 (diff)
Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
Diffstat (limited to 'xkb')
-rw-r--r--xkb/XKBAlloc.c4
-rw-r--r--xkb/XKBGAlloc.c4
-rw-r--r--xkb/XKBMAlloc.c4
-rw-r--r--xkb/XKBMisc.c4
-rw-r--r--xkb/ddxBeep.c4
-rw-r--r--xkb/ddxConfig.c4
-rw-r--r--xkb/ddxCtrls.c4
-rw-r--r--xkb/ddxDevBtn.c4
-rw-r--r--xkb/ddxFakeBtn.c4
-rw-r--r--xkb/ddxFakeMtn.c4
-rw-r--r--xkb/ddxInit.c4
-rw-r--r--xkb/ddxKeyClick.c4
-rw-r--r--xkb/ddxKillSrv.c4
-rw-r--r--xkb/ddxLEDs.c4
-rw-r--r--xkb/ddxList.c4
-rw-r--r--xkb/ddxLoad.c4
-rw-r--r--xkb/ddxPrivate.c4
-rw-r--r--xkb/ddxVT.c4
-rw-r--r--xkb/maprules.c4
-rw-r--r--xkb/xkb.c5
-rw-r--r--xkb/xkbAccessX.c4
-rw-r--r--xkb/xkbActions.c4
-rw-r--r--xkb/xkbDflts.h4
-rw-r--r--xkb/xkbEvents.c4
-rw-r--r--xkb/xkbInit.c4
-rw-r--r--xkb/xkbLEDs.c4
-rw-r--r--xkb/xkbPrKeyEv.c4
-rw-r--r--xkb/xkbPrOtherEv.c4
-rw-r--r--xkb/xkbSwap.c4
-rw-r--r--xkb/xkbUtils.c4
-rw-r--r--xkb/xkbconfig.c4
-rw-r--r--xkb/xkberrs.c4
-rw-r--r--xkb/xkbfmisc.c4
-rw-r--r--xkb/xkbout.c4
-rw-r--r--xkb/xkbtext.c4
-rw-r--r--xkb/xkmread.c4
36 files changed, 144 insertions, 1 deletions
diff --git a/xkb/XKBAlloc.c b/xkb/XKBAlloc.c
index cc85b8f9e..c415380ee 100644
--- a/xkb/XKBAlloc.c
+++ b/xkb/XKBAlloc.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/lib/X11/XKBAlloc.c,v 3.5 2001/01/17 19:41:48 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifndef XKB_IN_SERVER
#ifdef HAVE_CONFIG_H
diff --git a/xkb/XKBGAlloc.c b/xkb/XKBGAlloc.c
index a1c0d1be8..d5b9a1c93 100644
--- a/xkb/XKBGAlloc.c
+++ b/xkb/XKBGAlloc.c
@@ -29,6 +29,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define NEED_EVENTS
#define NEED_REPLIES
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifndef XKB_IN_SERVER
#ifdef HAVE_CONFIG_H
diff --git a/xkb/XKBMAlloc.c b/xkb/XKBMAlloc.c
index 9fe33e7de..db0020691 100644
--- a/xkb/XKBMAlloc.c
+++ b/xkb/XKBMAlloc.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/lib/X11/XKBMAlloc.c,v 3.11 2001/01/17 19:41:48 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifndef XKB_IN_SERVER
#ifdef HAVE_CONFIG_H
diff --git a/xkb/XKBMisc.c b/xkb/XKBMisc.c
index 987c6e33a..6ad364127 100644
--- a/xkb/XKBMisc.c
+++ b/xkb/XKBMisc.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/lib/X11/XKBMisc.c,v 3.5 2001/10/28 03:32:33 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifndef XKB_IN_SERVER
#ifdef HAVE_CONFIG_H
diff --git a/xkb/ddxBeep.c b/xkb/ddxBeep.c
index 665f0e5a2..429d1e778 100644
--- a/xkb/ddxBeep.c
+++ b/xkb/ddxBeep.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxBeep.c,v 3.9 2002/12/05 21:59:00 paulo Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxConfig.c b/xkb/ddxConfig.c
index c5e32d0b7..4f395d558 100644
--- a/xkb/ddxConfig.c
+++ b/xkb/ddxConfig.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxConfig.c,v 3.8 2002/12/20 20:18:35 paulo Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxCtrls.c b/xkb/ddxCtrls.c
index 278cd1dc0..2e4e106ce 100644
--- a/xkb/ddxCtrls.c
+++ b/xkb/ddxCtrls.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxCtrls.c,v 1.3 2001/01/17 22:37:14 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxDevBtn.c b/xkb/ddxDevBtn.c
index f93934a77..d0e37f263 100644
--- a/xkb/ddxDevBtn.c
+++ b/xkb/ddxDevBtn.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxDevBtn.c,v 3.3 2001/08/23 21:49:51 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxFakeBtn.c b/xkb/ddxFakeBtn.c
index 540b72292..73c8a2415 100644
--- a/xkb/ddxFakeBtn.c
+++ b/xkb/ddxFakeBtn.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86$ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxFakeMtn.c b/xkb/ddxFakeMtn.c
index 93b58bd04..be5324d0f 100644
--- a/xkb/ddxFakeMtn.c
+++ b/xkb/ddxFakeMtn.c
@@ -27,6 +27,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxFakeMtn.c,v 1.5 2003/09/13 16:39:01 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxInit.c b/xkb/ddxInit.c
index 75567486d..8b76b7cb1 100644
--- a/xkb/ddxInit.c
+++ b/xkb/ddxInit.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86$ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxKeyClick.c b/xkb/ddxKeyClick.c
index 19a2ec9e1..c940e5321 100644
--- a/xkb/ddxKeyClick.c
+++ b/xkb/ddxKeyClick.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86$ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxKillSrv.c b/xkb/ddxKillSrv.c
index 7a822fa20..2e6ad6ee3 100644
--- a/xkb/ddxKillSrv.c
+++ b/xkb/ddxKillSrv.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxKillSrv.c,v 1.3 2002/11/23 19:27:50 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxLEDs.c b/xkb/ddxLEDs.c
index 5998f7614..fb5f72bf8 100644
--- a/xkb/ddxLEDs.c
+++ b/xkb/ddxLEDs.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86$ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxList.c b/xkb/ddxList.c
index 7e7c375ad..3cb4be09d 100644
--- a/xkb/ddxList.c
+++ b/xkb/ddxList.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxList.c,v 3.8 2003/07/16 01:39:05 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#define NEED_EVENTS 1
diff --git a/xkb/ddxLoad.c b/xkb/ddxLoad.c
index 5ad593f4c..5bad9cb31 100644
--- a/xkb/ddxLoad.c
+++ b/xkb/ddxLoad.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxLoad.c,v 3.35 2003/10/02 13:30:12 eich Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#define NEED_EVENTS 1
diff --git a/xkb/ddxPrivate.c b/xkb/ddxPrivate.c
index 3a9f8ea0b..b2b2dadc4 100644
--- a/xkb/ddxPrivate.c
+++ b/xkb/ddxPrivate.c
@@ -1,5 +1,9 @@
/* $XFree86: xc/programs/Xserver/xkb/ddxPrivate.c,v 1.2 2003/04/03 16:20:22 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/ddxVT.c b/xkb/ddxVT.c
index aa8cba00b..9e0ac9dd2 100644
--- a/xkb/ddxVT.c
+++ b/xkb/ddxVT.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/ddxVT.c,v 1.3 2002/11/23 19:27:50 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/maprules.c b/xkb/maprules.c
index e7e369d2e..03ca51eaa 100644
--- a/xkb/maprules.c
+++ b/xkb/maprules.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/maprules.c,v 3.17 2002/11/26 01:43:25 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkb.c b/xkb/xkb.c
index ee478a365..d347646c0 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkb.c,v 3.22tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <X11/X.h>
#define NEED_EVENTS
@@ -36,7 +40,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define XKBSRV_NEED_FILE_FUNCS
#include <X11/extensions/XKBsrv.h>
#include "extnsionst.h"
-#include "modinit.h"
#include "xkb.h"
#include <X11/extensions/XI.h>
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c
index 6e519dc5a..b31ca7ed5 100644
--- a/xkb/xkbAccessX.c
+++ b/xkb/xkbAccessX.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbAccessX.c,v 1.9 2001/08/23 14:33:25 alanh Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <math.h>
#ifdef __QNX__
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index 9198825df..2f229686e 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -27,6 +27,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbActions.c,v 3.13 2003/07/16 01:39:08 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <math.h>
#define NEED_EVENTS 1
diff --git a/xkb/xkbDflts.h b/xkb/xkbDflts.h
index 7ea30bde2..e3dd9cdda 100644
--- a/xkb/xkbDflts.h
+++ b/xkb/xkbDflts.h
@@ -2,6 +2,10 @@
/* $XFree86: xc/programs/Xserver/xkb/xkbDflts.h,v 1.2 2001/10/28 03:34:20 tsi Exp $ */
/* This file generated automatically by xkbcomp */
/* DO NOT EDIT */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifndef DEFAULT_H
#define DEFAULT_H 1
diff --git a/xkb/xkbEvents.c b/xkb/xkbEvents.c
index 29ce818c1..8305208a0 100644
--- a/xkb/xkbEvents.c
+++ b/xkb/xkbEvents.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbEvents.c,v 3.11 2003/07/16 01:39:10 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#define NEED_EVENTS 1
#include <X11/X.h>
diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c
index 35f9415d1..3ff14cca5 100644
--- a/xkb/xkbInit.c
+++ b/xkb/xkbInit.c
@@ -27,6 +27,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbInit.c,v 3.32tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c
index 212048ac8..0b4fcaeab 100644
--- a/xkb/xkbLEDs.c
+++ b/xkb/xkbLEDs.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbLEDs.c,v 3.7 2003/07/16 01:39:10 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <math.h>
diff --git a/xkb/xkbPrKeyEv.c b/xkb/xkbPrKeyEv.c
index 71cc3e403..ec850d89c 100644
--- a/xkb/xkbPrKeyEv.c
+++ b/xkb/xkbPrKeyEv.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbPrKeyEv.c,v 3.8 2001/01/17 22:37:15 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <math.h>
#define NEED_EVENTS 1
diff --git a/xkb/xkbPrOtherEv.c b/xkb/xkbPrOtherEv.c
index 1e2773f64..f69ff00d6 100644
--- a/xkb/xkbPrOtherEv.c
+++ b/xkb/xkbPrOtherEv.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86$ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <math.h>
#define NEED_EVENTS 1
diff --git a/xkb/xkbSwap.c b/xkb/xkbSwap.c
index 635329445..193a4f463 100644
--- a/xkb/xkbSwap.c
+++ b/xkb/xkbSwap.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbSwap.c,v 3.4 2003/09/13 16:39:01 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include "stdio.h"
#include <X11/X.h>
#define NEED_EVENTS
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index c4ff1ca3f..d655efc75 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -26,6 +26,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/programs/Xserver/xkb/xkbUtils.c,v 3.16 2003/11/03 05:12:02 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <math.h>
diff --git a/xkb/xkbconfig.c b/xkb/xkbconfig.c
index 3c01fa8b2..3d582d1fb 100644
--- a/xkb/xkbconfig.c
+++ b/xkb/xkbconfig.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkbconfig.c,v 3.7 2001/11/30 12:11:51 eich Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkberrs.c b/xkb/xkberrs.c
index 08b44f2a3..731d0b5cf 100644
--- a/xkb/xkberrs.c
+++ b/xkb/xkberrs.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkberrs.c,v 3.4 2001/07/29 05:01:13 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkbfmisc.c b/xkb/xkbfmisc.c
index c1d136820..f55ab5bdf 100644
--- a/xkb/xkbfmisc.c
+++ b/xkb/xkbfmisc.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkbmisc.c,v 1.7 2003/07/16 02:31:10 dawes Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkbout.c b/xkb/xkbout.c
index 059959a3e..cdf699509 100644
--- a/xkb/xkbout.c
+++ b/xkb/xkbout.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkbout.c,v 3.9 2001/10/28 03:32:47 tsi Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c
index 86df1cb82..0df7c894b 100644
--- a/xkb/xkbtext.c
+++ b/xkb/xkbtext.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkbtext.c,v 3.11 2002/12/21 18:49:02 paulo Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/xkb/xkmread.c b/xkb/xkmread.c
index a69058a5c..3f38a4f96 100644
--- a/xkb/xkmread.c
+++ b/xkb/xkmread.c
@@ -26,6 +26,10 @@
********************************************************/
/* $XFree86: xc/lib/xkbfile/xkmread.c,v 1.6 2002/02/13 22:09:42 herrb Exp $ */
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif