aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-12 10:12:21 +0000
committerJim Blandy1993-06-12 10:12:21 +0000
commit788442db42d919bdc51e3ef859fc58a62c9fcf6a (patch)
treee2e550fb379ceeaf6d6693dd56b99a0caca5ecc0 /src
parent5e12e32f7baeae5afcd08964b72cbc99bc291cb6 (diff)
downloademacs-788442db42d919bdc51e3ef859fc58a62c9fcf6a.tar.gz
emacs-788442db42d919bdc51e3ef859fc58a62c9fcf6a.zip
* config.h.in (HAVE_XRMSETDATABASE, HAVE_RANDOM, HAVE_LIBXBSD):
Add #undefs for these. Dyke out code requesting -lXbsd and HAVE_RANDOM for XFREE386. * xfns.c (Fx_open_connection): Test HAVE_XRMSETDATABASE instead of NO_XRM_SET_DATABASE; the latter isn't used any more. * m/delta88k, m/tekXD88.h, s/linux.h, s/usg5-4-2.h (HAVE_RANDOM): Dyke out these #definitions; to avoid conflict with autoconf.
Diffstat (limited to 'src')
-rw-r--r--src/config.in5
-rw-r--r--src/xfns.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config.in b/src/config.in
index 9fad42a74cc..fe34dda65c4 100644
--- a/src/config.in
+++ b/src/config.in
@@ -97,6 +97,9 @@ and this notice must be preserved on all copies. */
97#undef const 97#undef const
98#undef UNEXEC_SRC 98#undef UNEXEC_SRC
99#undef HAVE_LIBDNET 99#undef HAVE_LIBDNET
100#undef HAVE_XRMSETDATABASE
101#undef HAVE_RANDOM
102#undef HAVE_LIBXBSD
100 103
101/* If using GNU, then support inline function declarations. */ 104/* If using GNU, then support inline function declarations. */
102#ifdef __GNUC__ 105#ifdef __GNUC__
@@ -186,6 +189,7 @@ and this notice must be preserved on all copies. */
186#endif 189#endif
187#endif 190#endif
188 191
192#if 0 /* This should be taken care of by autoconf now. */
189/* joe@zircon.uucp says that in order to use XFree386, you have to 193/* joe@zircon.uucp says that in order to use XFree386, you have to
190 link against -lXbsd, which insists on defining the random 194 link against -lXbsd, which insists on defining the random
191 function. 195 function.
@@ -196,6 +200,7 @@ and this notice must be preserved on all copies. */
196#define LIBX11_SYSTEM -lXbsd 200#define LIBX11_SYSTEM -lXbsd
197#define HAVE_RANDOM 201#define HAVE_RANDOM
198#endif 202#endif
203#endif
199 204
200/* Some of the files of Emacs which are intended for use with other 205/* Some of the files of Emacs which are intended for use with other
201 programs assume that if you have a config.h file, you must declare 206 programs assume that if you have a config.h file, you must declare
diff --git a/src/xfns.c b/src/xfns.c
index 994d749d6a5..6b1eb465b2c 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3477,7 +3477,7 @@ arg XRM_STRING is a string of resources in xrdb format.")
3477 else 3477 else
3478 xrm_option = (unsigned char *) 0; 3478 xrm_option = (unsigned char *) 0;
3479 xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS); 3479 xrdb = x_load_resources (x_current_display, xrm_option, EMACS_CLASS);
3480#if defined (HAVE_X11R5) && ! defined (NO_XRM_SET_DATBASE) 3480#if defined (HAVE_X11R5) || defined (HAVE_XRMSETDATABASE)
3481 XrmSetDatabase (x_current_display, xrdb); 3481 XrmSetDatabase (x_current_display, xrdb);
3482#else 3482#else
3483 x_current_display->db = xrdb; 3483 x_current_display->db = xrdb;