summaryrefslogtreecommitdiff
path: root/x11/xbanner/files/patch-ac
blob: 511a613783701b8b07a8a4a375f616f67f7ccd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
*** xres.c.org	Tue May 18 20:07:11 1999
--- xres.c	Tue May 18 20:30:50 1999
***************
*** 8,13 ****
--- 8,14 ----
  #include <string.h>
  #include <stdlib.h>
  #include <ctype.h>
+ #include <sys/param.h>
  
  #include <X11/Xlib.h>
  #include <X11/Xutil.h>
***************
*** 1196,1202 ****
    /* get the app-defaults */
  
  #ifndef vms
!   strcpy(line,"/usr/lib/X11/app-defaults/");
    strcat(line,PRGCLASS);
    appdefDB = XrmGetFileDatabase(line);
    if(appdefDB==NULL && getenv("XAPPLRESDIR")!=NULL)
--- 1197,1207 ----
    /* get the app-defaults */
  
  #ifndef vms
! #  if (defined(BSD) && (BSD >= 199306))
!      strcpy(line,"%%X11BASE%%/lib/X11/app-defaults/");
! #  else
!      strcpy(line,"/usr/lib/X11/app-defaults/");
! #  endif
    strcat(line,PRGCLASS);
    appdefDB = XrmGetFileDatabase(line);
    if(appdefDB==NULL && getenv("XAPPLRESDIR")!=NULL)