Include <unistd.h> for gethostname and "nss.h" for __nss_configure_lookup.
authordrepper <drepper>
Tue, 10 Feb 1998 19:57:10 +0000 (19:57 +0000)
committerdrepper <drepper>
Tue, 10 Feb 1998 19:57:10 +0000 (19:57 +0000)
(output_hostent): Remove unused variable.

nss/test-netdb.c

index 918bbeb..46cf524 100644 (file)
@@ -37,6 +37,8 @@
 #include <netinet/in.h>
 #include <sys/param.h>
 #include <sys/socket.h>
+#include <unistd.h>
+#include "nss.h"
 
 /*
   The following define is neccessary for glibc 2.0.6
@@ -104,7 +106,6 @@ test_services (void)
 void
 output_hostent (const char *call, struct hostent *hptr)
 {
-  int i;
   char **pptr;
   char buf[INET6_ADDRSTRLEN];