summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/ka.c1
-rw-r--r--mdk-stage1/params.c1
-rw-r--r--mdk-stage1/utils.c1
-rw-r--r--mdk-stage1/utils.h2
4 files changed, 5 insertions, 0 deletions
diff --git a/mdk-stage1/ka.c b/mdk-stage1/ka.c
index 5231f1d28..7d8325084 100644
--- a/mdk-stage1/ka.c
+++ b/mdk-stage1/ka.c
@@ -19,6 +19,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <unistd.h>
#include "config-stage1.h"
#include "frontend.h"
diff --git a/mdk-stage1/params.c b/mdk-stage1/params.c
index 311f8b0ea..38ac94956 100644
--- a/mdk-stage1/params.c
+++ b/mdk-stage1/params.c
@@ -13,6 +13,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/mdk-stage1/utils.c b/mdk-stage1/utils.c
index 4846a0aea..434704bef 100644
--- a/mdk-stage1/utils.c
+++ b/mdk-stage1/utils.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/mdk-stage1/utils.h b/mdk-stage1/utils.h
index 3270fda70..fe02bc00c 100644
--- a/mdk-stage1/utils.h
+++ b/mdk-stage1/utils.h
@@ -15,6 +15,8 @@
#ifndef _UTILS_H_
#define _UTILS_H_
+#include <sys/stat.h>
+
int charstar_to_int(const char * s);
off_t file_size(const char * path);
char * cat_file(const char * file, struct stat * s);