openbsd-ports/x11/olvwm/patches/patch-05

15 lines
442 B
Plaintext
Raw Normal View History

1998-09-29 22:31:44 -04:00
--- defaults.c.orig Thu Jan 13 16:36:03 1994
+++ defaults.c Tue Sep 29 22:08:26 1998
@@ -90,7 +90,11 @@
#ifdef SVR4
if (sysinfo(SI_HOSTNAME, hostname, sizeof(hostname)) != -1) {
#else
+#ifndef __OpenBSD__
if (0 == gethostname(hostname, sizeof(hostname), &namelen)) {
+#else
+ if (0 == gethostname(hostname, sizeof(hostname))) {
+#endif
#endif
(void) strcat(filename, hostname);
fileDB = XrmGetFileDatabase(filename);