X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/cf9b4b0b2c111c818f580994772f262d10064af1..c04d9e704746e6914389ee11c1ade991f66031d5:/src/xrdb.c diff --git a/src/xrdb.c b/src/xrdb.c index ba6e660285..248e5eba64 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -1,5 +1,5 @@ /* Deal with the X Resource Manager. - Copyright (C) 1990, 1993, 1994 Free Software Foundation. + Copyright (C) 1990, 1993, 1994, 2000, 2001 Free Software Foundation. This file is part of GNU Emacs. @@ -15,8 +15,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs; see the file COPYING. If not, write to -the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */ /* Written by jla, 4/90 */ @@ -33,12 +33,15 @@ Boston, MA 02111-1307, USA. */ #include #if 1 /* I'd really appreciate it if this code could go away... -JimB */ -/* this avoids lossage in the `dual-universe' headers on AT&T SysV X11 */ -#ifdef USG5 +/* This avoids lossage in the `dual-universe' headers on AT&T SysV + X11. Don't do it on Solaris, because it breaks compilation with + XFree86 4.0.3 (and probably many other X11R6 releases) on Solaris + 2 */ +#if defined(USG5) && !defined(SOLARIS2) #ifndef SYSV #define SYSV #endif -#endif /* USG5 */ +#endif /* USG5 && !SOLARIS2 */ #endif /* 1 */ @@ -50,9 +53,7 @@ Boston, MA 02111-1307, USA. */ #include #include #include -#ifdef VMS -#include "vms-pwd.h" -#else +#ifdef HAVE_PWD_H #include #endif #include @@ -320,13 +321,13 @@ gethomedir () static int -file_p (path) - char *path; +file_p (filename) + char *filename; { struct stat status; - return (access (path, 4) == 0 /* exists and is readable */ - && stat (path, &status) == 0 /* get the status */ + return (access (filename, 4) == 0 /* exists and is readable */ + && stat (filename, &status) == 0 /* get the status */ && (S_ISDIR (status.st_mode)) == 0); /* not a directory */ } @@ -524,7 +525,9 @@ x_load_resources (display, xrm_string, myname, myclass) XrmDatabase rdb; XrmDatabase db; char line[256]; + char *helv = "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1"; + #ifdef USE_MOTIF char *courier = "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1"; extern Lisp_Object Vdouble_click_time; @@ -548,7 +551,7 @@ x_load_resources (display, xrm_string, myname, myclass) XrmPutLineResource (&rdb, line); sprintf (line, "%s*menu*background: grey75", myclass); XrmPutLineResource (&rdb, line); - sprintf (line, "%s*menubar*background: grey75", myclass, helv); + sprintf (line, "%s*menubar*background: grey75", myclass); XrmPutLineResource (&rdb, line); sprintf (line, "%s*verticalScrollBar.background: grey75", myclass); XrmPutLineResource (&rdb, line); @@ -809,3 +812,6 @@ main (argc, argv) XCloseDisplay (display); } #endif /* TESTRM */ + +/* arch-tag: 37e6fbab-ed05-4363-9e76-6c4109ed511f + (do not change this comment) */