aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-07-31 01:31:46 +0000
committerJim Blandy1993-07-31 01:31:46 +0000
commitd8717d15088c8f9de6ed0a586614f31b4bb34df7 (patch)
tree8fe9e06b2113c32260972561b1356c551429ac78 /src
parent1f88d61ef52d925a90a0423b375e620665cf26fa (diff)
downloademacs-d8717d15088c8f9de6ed0a586614f31b4bb34df7.tar.gz
emacs-d8717d15088c8f9de6ed0a586614f31b4bb34df7.zip
* config.h.in (HAVE_XSCREENRESOURCESTRING): New #undef for
configure to edit. * xrdb.c (get_user_db): Test it to decide whether or not to try to retrieve the screen-dependent resources.
Diffstat (limited to 'src')
-rw-r--r--src/config.in2
-rw-r--r--src/xrdb.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/config.in b/src/config.in
index 6ebcde54c24..174f6bac195 100644
--- a/src/config.in
+++ b/src/config.in
@@ -111,6 +111,8 @@ and this notice must be preserved on all copies. */
111 111
112#undef HAVE_LIBXBSD 112#undef HAVE_LIBXBSD
113#undef HAVE_XRMSETDATABASE 113#undef HAVE_XRMSETDATABASE
114#undef HAVE_XSCREENRESOURCESTRING
115
114#undef HAVE_RANDOM 116#undef HAVE_RANDOM
115 117
116#undef HAVE_BCOPY 118#undef HAVE_BCOPY
diff --git a/src/xrdb.c b/src/xrdb.c
index 7bced538a8b..ea0cbc89b31 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -459,8 +459,7 @@ get_user_db (display)
459 free (xdefault); 459 free (xdefault);
460 } 460 }
461 461
462#ifdef XlibSpecificationRelease 462#ifdef HAVE_XSCREENRESOURCESTRING
463#if XlibSpecificationRelease >= 5
464 /* Get the screen-specific resources too. */ 463 /* Get the screen-specific resources too. */
465 xdefs = XScreenResourceString (DefaultScreenOfDisplay (display)); 464 xdefs = XScreenResourceString (DefaultScreenOfDisplay (display));
466 if (xdefs != NULL) 465 if (xdefs != NULL)
@@ -469,7 +468,6 @@ get_user_db (display)
469 XFree (xdefs); 468 XFree (xdefs);
470 } 469 }
471#endif 470#endif
472#endif
473 471
474 return db; 472 return db;
475} 473}