From 4bb04764b341616556623a1f8f90db0a346c201e Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Tue, 2 May 2000 23:46:08 +0000 Subject: Tue May 2 16:56:47 PDT 2000 Michael Jennings After getting sick of hearing people whining about the obscure error messages that resulted from trying to build without pixmap support, I hacked it until it at least built without it. I also added warnings to configure.in so that people would know if that happened. It's still not very happy running that way, which is something I need to fix. But hopefully it will stop the whining. Yeah, right. =P SVN revision: 2590 --- utils/Esetroot.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/Esetroot.c b/utils/Esetroot.c index 2a400c8..53578af 100644 --- a/utils/Esetroot.c +++ b/utils/Esetroot.c @@ -17,6 +17,8 @@ static const char cvs_ident[] = "$Id$"; #ifdef HAVE_UNISTD_H # include #endif + +#ifdef PIXMAP_SUPPORT #include #include #include @@ -88,11 +90,12 @@ set_pixmap_property(Pixmap p) XSetCloseDownMode(Xdisplay, RetainPermanent); XFlush(Xdisplay); } +#endif int main(int argc, char *argv[]) { - +#ifdef PIXMAP_SUPPORT unsigned char scale = 0, center = 0, fit = 0; char *displayname = NULL; char *fname = NULL; @@ -234,5 +237,8 @@ main(int argc, char *argv[]) XClearWindow(Xdisplay, Xroot); XFlush(Xdisplay); } +#else + fprintf(stderr, "Eterm was built without pixmap support, so Esetroot is fairly useless. Sorry.\n"); +#endif return 0; } -- cgit v1.2.1