@@ -3,6 +3,10 @@
#include "config.h"
+#ifdef WIN32
+#include <winsock2.h>
+#endif
+
#include <stdbool.h>
// NOTE: Nested preprocessor checks since the latter isn't defined at all without the former
@@ -8,6 +8,8 @@
* any later version. See COPYING for more details.
*/
+#include "config.h"
#include <limits.h>
#include <pthread.h>
#include <stdint.h>
@@ -16,8 +18,6 @@
#include <sys/time.h>
#include <unistd.h>
-#include "config.h"
-
#include "compat.h"
#include "miner.h"
#include "fpgautils.h"
@@ -31,6 +31,10 @@
#include <stdio.h>
@@ -11,6 +11,10 @@
#ifdef HAVE_CURSES
#include <curses.h>
#endif
@@ -9,6 +9,10 @@
#include <math.h>
@@ -10,6 +10,10 @@
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>