windows crappage
authorNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 13:05:51 +0000 (13:05 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 13:05:51 +0000 (13:05 +0000)
src/transport/gnunet-nat-server-windows.c

index 5febc8e84fd66810d5112b44d5935c65a506085c..c7fd824931568b14109ce4d10c5612d6a7df95cb 100644 (file)
@@ -49,7 +49,8 @@
 #include <arpa/inet.h>
 #include <sys/select.h>
 #include <netinet/ip.h>
-
+#include <netinet/ip_icmp.h>
+#include <netinet/in.h>
 #endif
 #include <sys/time.h>
 #include <sys/types.h>
 #include <stdlib.h>
 #include <stdint.h>
 #include <time.h>
-#include <netinet/ip_icmp.h>
-#include <netinet/in.h>
+
 
 #ifdef WIN32
 typedef SOCKET Socket;
 typedef unsigned short ushort;
+#define ICMP_ECHO 8
+#define IPDEFTTL        64              /* default ttl, from RFC 1340 */
+#define ICMP_TIME_EXCEEDED      11      /* Time Exceeded                */
+#define IP_HDRINCL      3       /* int; Header is included with data.  */
 #else
 typedef int Socket;
 #endif