]> The Tcpdump Group git mirrors - tcpdump/commitdiff
If the platform on which tcpdump is being built has "strings.h", include
authorguy <guy>
Tue, 26 Jun 2001 06:36:08 +0000 (06:36 +0000)
committerguy <guy>
Tue, 26 Jun 2001 06:36:08 +0000 (06:36 +0000)
it in "addrtoname.c", so that "bcmp()" and "bcopy()" are defined.

addrtoname.c
config.h.in
configure
configure.in

index 445dadcfa6095bfcd5137622fb528d84b410c9e4..df743f972ae99c804f5b16e47cf820156aaa7db9 100644 (file)
@@ -23,7 +23,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.78 2001-06-24 21:49:25 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/addrtoname.c,v 1.79 2001-06-26 06:36:08 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -54,6 +54,9 @@ struct rtentry;
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>   /* declare "bcmp()" and "bcopy()" */
+#endif
 
 #include "interface.h"
 #include "addrtoname.h"
index d427e9dc11d0fc7b8edd188f99f9e985afea8611..5f6ef0caa1fcc7979c711ca7342bffc488d29292 100644 (file)
 /* Define if you have the <smi.h> header file.  */
 #undef HAVE_SMI_H
 
+/* Define if you have the <strings.h> header file.  */
+#undef HAVE_STRINGS_H
+
 /* Define if you have the crypto library (-lcrypto).  */
 #undef HAVE_LIBCRYPTO
 
index f62ea60d7c81f331c11d3d29f6ceee159eb650f3..b6a81137cfa687f04cd074667645a8cb496d476c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# From configure.in Revision: 1.137 
+# From configure.in Revision: 1.138 
 
 
 
@@ -1299,7 +1299,7 @@ else
 fi
 echo "$ac_t""$CPP" 1>&6
 
-for ac_hdr in fcntl.h rpc/rpcent.h netinet/if_ether.h
+for ac_hdr in fcntl.h rpc/rpcent.h netinet/if_ether.h strings.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
index fb7d158f0308b4902a12ce2114aaeb4054134b2a..f655c5dcbb8e7f75be8b4e689657e6241a5b3c3b 100644 (file)
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.137 2001-06-24 21:39:10 itojun Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.138 2001-06-26 06:36:09 guy Exp $ (LBL)
 dnl
 dnl Copyright (c) 1994, 1995, 1996, 1997
 dnl    The Regents of the University of California.  All rights reserved.
@@ -6,7 +6,7 @@ dnl
 dnl Process this file with autoconf to produce a configure script.
 dnl
 
-AC_REVISION($Revision: 1.137 $)
+AC_REVISION($Revision: 1.138 $)
 AC_PREREQ(2.13)
 AC_INIT(tcpdump.c)
 
@@ -16,7 +16,7 @@ AC_LBL_C_INIT(V_CCOPT, V_INCLS)
 AC_C_INLINE
 AC_C___ATTRIBUTE__
 
-AC_CHECK_HEADERS(fcntl.h rpc/rpcent.h netinet/if_ether.h)
+AC_CHECK_HEADERS(fcntl.h rpc/rpcent.h netinet/if_ether.h strings.h)
 AC_HEADER_TIME
 
 case "$target_os" in