summaryrefslogtreecommitdiff
path: root/x11/xbanner/files/patch-ac
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-06-06 18:11:04 +0000
committerSteve Price <steve@FreeBSD.org>1999-06-06 18:11:04 +0000
commitac8274b67c03a00b61eb003c4b3e8d617a1d092a (patch)
tree4abe3f4417dc3aa0c003f1ebfd975ec6a4daef31 /x11/xbanner/files/patch-ac
parentAdd the gedit port and re-order the gnotepad+ port. (diff)
Fix the following problems with version 1.31 of the xbanner port.
- 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>
Diffstat (limited to 'x11/xbanner/files/patch-ac')
-rw-r--r--x11/xbanner/files/patch-ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/xbanner/files/patch-ac b/x11/xbanner/files/patch-ac
new file mode 100644
index 000000000000..511a61378370
--- /dev/null
+++ b/x11/xbanner/files/patch-ac
@@ -0,0 +1,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)