quiet compiler
authorfcusack <fcusack>
Mon, 10 Jun 2002 11:01:23 +0000 (11:01 +0000)
committerfcusack <fcusack>
Mon, 10 Jun 2002 11:01:23 +0000 (11:01 +0000)
src/lib/misc.c

index 8d48235..e1c6fc0 100644 (file)
@@ -37,10 +37,12 @@ char * ip_hostname(char *buf, size_t buflen, uint32_t ipaddr)
 {
        struct          hostent *hp;
 #ifdef GETHOSTBYADDRRSTYLE
+#if (GETHOSTBYADDRRSTYLE == SYSVSTYLE) || (GETHOSTBYADDRRSTYLE == GNUSTYLE)
        char buffer[2048];
        struct hostent result;
        int error;
 #endif
+#endif
 
        /*
         *      No DNS: don't look up host names