aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c5
-rw-r--r--src/state.c1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index eaf7521..2c5253a 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -18,11 +18,14 @@
#define _DARWIN_C_SOURCE /* for mkdtemp on OSX */
#include <assert.h>
+#include <malloc.h>
#include <math.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#ifndef __cplusplus
# include <stdbool.h>
@@ -32,8 +35,6 @@
# include <io.h> /* for _mktemp */
# define snprintf _snprintf
#else
-# include <sys/stat.h>
-# include <sys/types.h>
# include <unistd.h>
#endif
diff --git a/src/state.c b/src/state.c
index 32d6c86..e2f2b47 100644
--- a/src/state.c
+++ b/src/state.c
@@ -19,7 +19,6 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>