summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-04-20 12:49:46 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-04-20 12:49:46 +0000
commit956dfa22f6076969776546fb1151e900d8d773a1 (patch)
treef3a63e9c9d74e52a9163f00fe73cd510696db4e7 /dix/main.c
parent2cdfab0ed7eb33a6a50f9b7ec212b498dd8318b5 (diff)
Conditionalise usage of Xprint functions and headers.
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dix/main.c b/dix/main.c
index 481a199e2..41c626ca6 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xc/programs/Xserver/dix/main.c,v 1.6 2005/03/23 19:58:45 gisburn Exp $ */
+/* $XdotOrg: xc/programs/Xserver/dix/main.c,v 1.7 2005/04/20 12:25:19 daniels Exp $ */
/* $XFree86: xc/programs/Xserver/dix/main.c,v 3.43 2003/10/30 21:21:02 herrb Exp $ */
/***********************************************************
@@ -100,7 +100,9 @@ Equipment Corporation.
#include "site.h"
#include "dixfont.h"
#include "extnsionst.h"
+#ifdef XPRINT
#include "DiPrint.h"
+#endif
#ifdef PANORAMIX
#include "panoramiXsrv.h"
#else
@@ -249,7 +251,9 @@ main(int argc, char *argv[], char *envp[])
display = "0";
InitGlobals();
+#ifdef XPRINT
PrinterInitGlobals();
+#endif
/* Quartz support on Mac OS X requires that the Cocoa event loop be in
* the main thread. This allows the X server main to be called again
@@ -361,7 +365,9 @@ main(int argc, char *argv[], char *envp[])
InitCallbackManager();
InitVisualWrap();
InitOutput(&screenInfo, argc, argv);
+#ifdef XPRINT
PrinterInitOutput(&screenInfo, argc, argv);
+#endif
if (screenInfo.numScreens < 1)
FatalError("no screens found");