]> 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:50:41 +0000 (10:50 +0000)
committerguy <guy>
Wed, 20 Apr 2005 10:50:41 +0000 (10:50 +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 dde42a8efdd9fc2f9fd6a3387075e94afa86c6a3..17c8581308d5e42b50fd7f9d291f89a92d3c069d 100644 (file)
@@ -23,7 +23,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.110 2005-04-20 02:59:30 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.111 2005-04-20 10:50:41 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>