]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add declarations of __ntohl() and __ntohs() to squelch compiler warnings
authorguy <guy>
Sun, 27 Mar 2005 01:26:54 +0000 (01:26 +0000)
committerguy <guy>
Sun, 27 Mar 2005 01:26:54 +0000 (01:26 +0000)
on Solaris 7 x86 with GCC 2.8.1.

tcpdump-stdinc.h

index c24ad6de2be7108a5cafed7effc428b11588825a..66366dacb3d825e0d1290a19a04294ec0733cca5 100644 (file)
@@ -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)