summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/xview/files/patch-clients+olwm+defaults.c
blob: b57480bc906f3b7f6deba0c00eb9d1bddae9a502 (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
--- ./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-");
+#ifdef BSD4_4
+	    if (0 == gethostname(hostname, sizeof(hostname))) {
+#else
 	    if (0 == gethostname(hostname, sizeof(hostname), &namelen)) {
+#endif
 		(void) strcat(filename, hostname);
 		fileDB = XrmGetFileDatabase(filename);
 	    }
OpenPOWER on IntegriCloud