Include winsock.h on windows so that htons will be defined.
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 14 Dec 2000 17:51:51 +0000 (17:51 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 14 Dec 2000 17:51:51 +0000 (17:51 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2756 f5534014-38df-0310-8fa8-9805f1628bb7

in_cksum.c

index a7e752b6c178de4f00e2cf9e2101afbf687c9a0e..abd1a8b969b94e64a123bf323ad7b127eb0365f9 100644 (file)
@@ -2,7 +2,7 @@
  * 4.4-Lite-2 Internet checksum routine, modified to take a vector of
  * pointers/lengths giving the pieces to be checksummed.
  *
- * $Id: in_cksum.c,v 1.1 2000/12/13 02:24:22 guy Exp $
+ * $Id: in_cksum.c,v 1.2 2000/12/14 17:51:51 gram Exp $
  */
 
 /*
 #include <arpa/inet.h>
 #endif
 
+#ifdef HAVE_WINSOCK_H
+#include <winsock.h>
+#endif
+
 #include <glib.h>
 
 #include "in_cksum.h"