--- defaults.c.orig Thu Jan 13 22:36:03 1994 +++ ./defaults.c Fri Jul 16 21:49:02 1999 @@ -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);