openbsd-ports/x11/xview/config/patches/p-olwm-defaults_c
espie f3cbb56810 Xview's return.
Cleaned up so that lib depends on config:build, and lndir it
instead of mucking with the source dir.

All patches put into config/patches, separated and renamed
(yes, this is a LARGE fucker).

Fake

xview/clients to come.

Currently installs under /usr/X11R6, some more patches to X needed to fix
that.
2000-04-02 15:25:13 +00:00

27 lines
750 B
Plaintext

--- ./clients/olwm/defaults.c.orig Tue Jun 29 07:11:43 1993
+++ ./clients/olwm/defaults.c Sat Apr 1 18:26:06 2000
@@ -25,9 +25,9 @@
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xresource.h>
-#ifdef OW_I18N_L4
+/* #ifdef OW_I18N_L4 */
#include <sys/param.h>
-#endif
+/* #endif */
#include "i18n.h"
#include "ollocale.h"
@@ -80,7 +80,11 @@ GetUserDefaults(dpy)
if (homedir != NULL) {
(void) strcpy(filename, homedir);
(void) strcat(filename, "/.Xdefaults-");
+#if defined(__OpenBSD__)
+ if (0 == gethostname(hostname, sizeof(hostname))) {
+#else
if (0 == gethostname(hostname, sizeof(hostname), &namelen)) {
+#endif
(void) strcat(filename, hostname);
fileDB = XrmGetFileDatabase(filename);
}