From: guy Date: Sun, 27 Mar 2005 01:26:54 +0000 (+0000) Subject: Add declarations of __ntohl() and __ntohs() to squelch compiler warnings X-Git-Tag: tcpdump-3.9.1~185 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/8377fb0a944aa2c14c2699662c5b837ecc9abb76 Add declarations of __ntohl() and __ntohs() to squelch compiler warnings on Solaris 7 x86 with GCC 2.8.1. --- diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h index c24ad6de..66366dac 100644 --- a/tcpdump-stdinc.h +++ b/tcpdump-stdinc.h @@ -29,7 +29,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * - * @(#) $Header: /tcpdump/master/tcpdump/tcpdump-stdinc.h,v 1.10 2005-02-09 02:25:45 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/tcpdump/tcpdump-stdinc.h,v 1.11 2005-03-27 01:26:54 guy Exp $ (LBL) */ /* @@ -132,6 +132,9 @@ typedef char* caddr_t; #undef htonl #undef htons + extern __inline__ unsigned long __ntohl (unsigned long x); + extern __inline__ unsigned short __ntohs (unsigned short x); + #define ntohl(x) __ntohl(x) #define ntohs(x) __ntohs(x) #define htonl(x) __ntohl(x)