aboutsummaryrefslogtreecommitdiffstats
path: root/in_cksum.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-12-14 17:51:51 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-12-14 17:51:51 +0000
commit80237dcb08769d1c6ea1a6398fa0979ae610c4ba (patch)
treeecb83b7681e5ea7b0a333b85e28ccac826995b9c /in_cksum.c
parente9904948d6cc870e368cc88005b31356aa25e732 (diff)
Include winsock.h on windows so that htons will be defined.
svn path=/trunk/; revision=2756
Diffstat (limited to 'in_cksum.c')
-rw-r--r--in_cksum.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/in_cksum.c b/in_cksum.c
index a7e752b6c1..abd1a8b969 100644
--- a/in_cksum.c
+++ b/in_cksum.c
@@ -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 $
*/
/*
@@ -52,6 +52,10 @@
#include <arpa/inet.h>
#endif
+#ifdef HAVE_WINSOCK_H
+#include <winsock.h>
+#endif
+
#include <glib.h>
#include "in_cksum.h"