]> The Tcpdump Group git mirrors - tcpdump/commitdiff
If we don't have ether_ntohost(), don't bother declaring it merely
authorguy <guy>
Wed, 20 Apr 2005 10:51:02 +0000 (10:51 +0000)
committerguy <guy>
Wed, 20 Apr 2005 10:51:02 +0000 (10:51 +0000)
because it's not declared in a system header file, as the reason it's
not declared is that it doesn't exist.

addrtoname.c

index e84944ca96b40e2b1b064a7700bb3295a1d20a8b..376080a5dde10a55cae6cd7b6c73dde6a54f0fea 100644 (file)
@@ -23,7 +23,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.108.2.2 2005-04-20 02:59:49 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.108.2.3 2005-04-20 10:51:02 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -42,12 +42,13 @@ struct rtentry;             /* declarations in <net/if.h> */
 #ifdef NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
 #include <netinet/ether.h>
 #endif /* NETINET_ETHER_H_DECLARES_ETHER_NTOHOST */
-#endif /* USE_ETHER_NTOHOST */
 
 #if !defined(HAVE_DECL_ETHER_NTOHOST) || !HAVE_DECL_ETHER_NTOHOST
 extern int ether_ntohost(char *, const struct ether_addr *);
 #endif
 
+#endif /* USE_ETHER_NTOHOST */
+
 #include <pcap.h>
 #include <pcap-namedb.h>
 #include <signal.h>