$NetBSD: patch-ab,v 1.1.1.1 2001/05/18 11:39:29 rh Exp $

--- whois.c.orig	Tue Nov 17 12:32:56 1998
+++ whois.c
@@ -84,11 +84,20 @@
 #include	<crypt.h>
 #endif /* SYSV */
 
+#ifdef RIPE
+#include <sys/param.h>
+#define	NICHOST	"whois.ripe.net"
+#else
+#define	NICHOST	"whois.internic.net"
+#endif
+
 #ifdef __STDC__
 extern int	getopt(int argc, char * const *argv, const char *optstring);
 extern int	kill(pid_t pid, int sig);
 extern FILE	*fdopen(int fildes, const char *type); 
+#ifndef BSD
 extern int	gethostname(char *name, int namelen);
+#endif
 #else /* !__STDC__ */
 extern int	gethostname();
 #endif /* __STDC__ */
@@ -140,13 +149,6 @@
 #define RIPE
 #endif /* !RIPE */
 #endif /* TOPDOMAIN || CLEVER */
-
-#ifdef RIPE
-#include <sys/param.h>
-#define	NICHOST	"whois.ripe.net"
-#else
-#define	NICHOST	"whois.internic.net"
-#endif
 
 void usage()
 {
