In miner.h, this fixes an alloca-definition-related warning. For the other files, this is simply future-proofing/precaution.
@@ -1,6 +1,8 @@
#ifndef __MINER_H__
#define __MINER_H__
+#include "cpuminer-config.h"
+
#include <stdbool.h>
#include <stdint.h>
#include <sys/time.h>
@@ -4,6 +4,7 @@
// tcatm's 4-way 128-bit SSE2 SHA-256
#include "miner.h"
#ifdef WANT_SSE2_4WAY
@@ -1,4 +1,6 @@
#include <string.h>
@@ -18,6 +18,8 @@
*
*/
#include <stdlib.h>
@@ -9,6 +9,8 @@
#ifdef WANT_X8664_SSE2