mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
ac8274b67c
- installing in libexec directory isn't useful - app-defaults file could only be found when XAPPLRESDIR enviroment variable is set -> patch in sourcefile is needed - some compiler warnings and gets usage is fixed - wrong usage of isnumber macro fixed PR: 11768 Submitted by: Lars Koeller <lkoeller@cc.fh-lippe.de>
34 lines
873 B
Plaintext
34 lines
873 B
Plaintext
*** 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)
|