--- 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);