diff options
author | Michael Jennings <mej@kainx.org> | 2000-05-02 23:46:08 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2000-05-02 23:46:08 +0000 |
commit | 4bb04764b341616556623a1f8f90db0a346c201e (patch) | |
tree | 8ffde6a6a5e4daa97bbd5f9b84f187286f44b22a /utils | |
parent | afda3ff59a431ea32b09f4933f7c017bfcaa5087 (diff) | |
download | eterm-4bb04764b341616556623a1f8f90db0a346c201e.tar.gz |
Tue May 2 16:56:47 PDT 2000 Michael Jennings <mej@eterm.org>
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Esetroot.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <unistd.h> #endif + +#ifdef PIXMAP_SUPPORT #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> @@ -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; } |