Browse Source

Merge commit 'b517079' into bfgminer-2.9.x

Luke Dashjr 13 years ago
parent
commit
12108e9da8
1 changed files with 2 additions and 4 deletions
  1. 2 4
      api-example.c

+ 2 - 4
api-example.c

@@ -24,7 +24,7 @@
 
 #include "compat.h"
 
-#if defined(unix)
+#ifndef WIN32
 	#include <errno.h>
 	#include <sys/socket.h>
 	#include <netinet/in.h>
@@ -39,9 +39,7 @@
 	#define SOCKETINIT {}
 
 	#define SOCKERRMSG strerror(errno)
-#endif
-
-#ifdef WIN32
+#else
 	#include <winsock2.h>
 
 	#define SOCKETTYPE SOCKET