projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2dfe19
)
windows crappage
author
Nathan S. Evans
<evans@in.tum.de>
Wed, 18 Aug 2010 13:05:51 +0000
(13:05 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Wed, 18 Aug 2010 13:05:51 +0000
(13:05 +0000)
src/transport/gnunet-nat-server-windows.c
patch
|
blob
|
history
diff --git
a/src/transport/gnunet-nat-server-windows.c
b/src/transport/gnunet-nat-server-windows.c
index 5febc8e84fd66810d5112b44d5935c65a506085c..c7fd824931568b14109ce4d10c5612d6a7df95cb 100644
(file)
--- a/
src/transport/gnunet-nat-server-windows.c
+++ b/
src/transport/gnunet-nat-server-windows.c
@@
-49,7
+49,8
@@
#include <arpa/inet.h>
#include <sys/select.h>
#include <netinet/ip.h>
#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>
#endif
#include <sys/time.h>
#include <sys/types.h>
@@
-60,12
+61,15
@@
#include <stdlib.h>
#include <stdint.h>
#include <time.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;
#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
#else
typedef int Socket;
#endif