aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-16 22:13:54 +0100
committerDavid Robillard <d@drobilla.net>2018-01-16 22:13:54 +0100
commite7992e2c48fb558f0e58099b1e98b4d45fbb58ba (patch)
tree20ac4d7802239695e203f1ccf4dacc31de59222b
parent15e7f5fe435c9ca67414a8aa1f8b2c328bab4a3d (diff)
downloadjalv-e7992e2c48fb558f0e58099b1e98b4d45fbb58ba.tar.gz
jalv-e7992e2c48fb558f0e58099b1e98b4d45fbb58ba.tar.bz2
jalv-e7992e2c48fb558f0e58099b1e98b4d45fbb58ba.zip
Remove unnecessary includes
-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>