aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/binarybuffer.c1
-rw-r--r--src/helper/bits.h1
-rw-r--r--src/helper/configuration.c2
-rw-r--r--src/helper/fileio.c1
-rw-r--r--src/helper/fileio.h2
-rw-r--r--src/helper/log.c1
-rw-r--r--src/helper/options.c1
-rw-r--r--src/helper/replacements.c1
-rw-r--r--src/helper/replacements.h1
-rw-r--r--src/helper/time_support.h1
10 files changed, 12 insertions, 0 deletions
diff --git a/src/helper/binarybuffer.c b/src/helper/binarybuffer.c
index 44d139f..3d35702 100644
--- a/src/helper/binarybuffer.c
+++ b/src/helper/binarybuffer.c
@@ -23,6 +23,7 @@
#include "config.h"
#endif
+#include "helper/replacements.h"
#include "log.h"
#include "binarybuffer.h"
diff --git a/src/helper/bits.h b/src/helper/bits.h
index cdcac9e..00d3c02 100644
--- a/src/helper/bits.h
+++ b/src/helper/bits.h
@@ -24,6 +24,7 @@
#ifndef OPENOCD_HELPER_BITS_H
#define OPENOCD_HELPER_BITS_H
+#include <helper/replacements.h>
#include <helper/types.h>
#define BIT(nr) (1UL << (nr))
diff --git a/src/helper/configuration.c b/src/helper/configuration.c
index 114ad2c..8f4f118 100644
--- a/src/helper/configuration.c
+++ b/src/helper/configuration.c
@@ -18,12 +18,14 @@
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "configuration.h"
#include "log.h"
+#include "replacements.h"
static size_t num_config_files;
static char **config_file_names;
diff --git a/src/helper/fileio.c b/src/helper/fileio.c
index 9dd57e7..b6f1f4e 100644
--- a/src/helper/fileio.c
+++ b/src/helper/fileio.c
@@ -29,6 +29,7 @@
#include "log.h"
#include "configuration.h"
#include "fileio.h"
+#include "replacements.h"
struct fileio {
char *url;
diff --git a/src/helper/fileio.h b/src/helper/fileio.h
index 02592e2..16c1046 100644
--- a/src/helper/fileio.h
+++ b/src/helper/fileio.h
@@ -25,6 +25,8 @@
#ifndef OPENOCD_HELPER_FILEIO_H
#define OPENOCD_HELPER_FILEIO_H
+#include "types.h"
+
#define FILEIO_MAX_ERROR_STRING (128)
enum fileio_type {
diff --git a/src/helper/log.c b/src/helper/log.c
index 7440b70..f5a8062 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -28,6 +28,7 @@
#include "log.h"
#include "command.h"
+#include "replacements.h"
#include "time_support.h"
#include <stdarg.h>
diff --git a/src/helper/options.c b/src/helper/options.c
index 0ccbf56..246c6a8 100644
--- a/src/helper/options.c
+++ b/src/helper/options.c
@@ -31,6 +31,7 @@
#include <limits.h>
#include <stdlib.h>
+#include <string.h>
#if IS_DARWIN
#include <libproc.h>
#endif
diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index b4bb94f..f4ecb8d 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -62,6 +62,7 @@ void *fill_malloc(size_t size)
#ifdef _WIN32
#include <io.h>
+#include <winsock2.h>
#endif
/* replacements for gettimeofday */
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index ac50095..1b6e5bd 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -26,6 +26,7 @@
#define OPENOCD_HELPER_REPLACEMENTS_H
#include <stdint.h>
+#include <helper/system.h>
/* MIN,MAX macros */
#ifndef MIN
diff --git a/src/helper/time_support.h b/src/helper/time_support.h
index a9f2dff..3c7d425 100644
--- a/src/helper/time_support.h
+++ b/src/helper/time_support.h
@@ -26,6 +26,7 @@
#define OPENOCD_HELPER_TIME_SUPPORT_H
#include <time.h>
+#include "types.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>