aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/DSV.h3
-rw-r--r--src/build.c1
-rw-r--r--src/filepath.h1
-rw-r--r--src/sha1.h1
4 files changed, 5 insertions, 1 deletions
diff --git a/src/DSV.h b/src/DSV.h
index 8243e8d..6b1109f 100644
--- a/src/DSV.h
+++ b/src/DSV.h
@@ -9,6 +9,9 @@
#ifndef __RDSV_H__
#define __RDSV_H__
+#include <stdlib.h>
+#include <stdio.h>
+
enum dsv_status {
E_SUCCESS = 0,
E_NO_NEWLINE_FOUND,
diff --git a/src/build.c b/src/build.c
index 0796e11..fdb82b9 100644
--- a/src/build.c
+++ b/src/build.c
@@ -14,7 +14,6 @@
#include <assert.h>
#include <unistd.h>
#include <sys/wait.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
diff --git a/src/filepath.h b/src/filepath.h
index 13382af..253b665 100644
--- a/src/filepath.h
+++ b/src/filepath.h
@@ -10,6 +10,7 @@
#define __FILEPATH_H__
#include <stdbool.h>
+#include <sys/types.h>
extern bool is_absolute(const char* path);
extern char *remove_ext(const char *str);
diff --git a/src/sha1.h b/src/sha1.h
index dbcfe58..fe78bdf 100644
--- a/src/sha1.h
+++ b/src/sha1.h
@@ -9,6 +9,7 @@ extern "C" {
#endif
#include <stdint.h>
+#include <stdlib.h>
typedef struct {
uint32_t state[5];