mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-12-04 23:44:50 +08:00
Add declarations of __ntohl() and __ntohs() to squelch compiler warnings
on Solaris 7 x86 with GCC 2.8.1.
This commit is contained in:
parent
28a778829d
commit
8377fb0a94
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user