Browse Source

SSM: Windows port

Luke Dashjr 12 years ago
parent
commit
ae42262983
2 changed files with 8 additions and 2 deletions
  1. 2 0
      driver-proxy.c
  2. 6 2
      driver-stratum.c

+ 2 - 0
driver-proxy.c

@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include <pthread.h>
 #include <pthread.h>
 
 
 #include <uthash.h>
 #include <uthash.h>

+ 6 - 2
driver-stratum.c

@@ -1,11 +1,15 @@
 #include "config.h"
 #include "config.h"
 
 
+#ifndef WIN32
+#include <arpa/inet.h>
+#else
+#include <winsock2.h>
+#endif
+
 #include <stdbool.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdint.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <arpa/inet.h>
-
 #include <event2/buffer.h>
 #include <event2/buffer.h>
 #include <event2/bufferevent.h>
 #include <event2/bufferevent.h>
 #include <event2/event.h>
 #include <event2/event.h>