diff options
| author | Jim Blandy | 1993-07-31 01:31:46 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-31 01:31:46 +0000 |
| commit | d8717d15088c8f9de6ed0a586614f31b4bb34df7 (patch) | |
| tree | 8fe9e06b2113c32260972561b1356c551429ac78 /src | |
| parent | 1f88d61ef52d925a90a0423b375e620665cf26fa (diff) | |
| download | emacs-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.in | 2 | ||||
| -rw-r--r-- | src/xrdb.c | 4 |
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 | } |