summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/jsondump.c1
-rw-r--r--example/simple.c1
-rw-r--r--jsmn.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/example/jsondump.c b/example/jsondump.c
index 7be628772..cf08c5ca5 100644
--- a/example/jsondump.c
+++ b/example/jsondump.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "../jsmn.h"
diff --git a/example/simple.c b/example/simple.c
index a6f8e6a98..de4488383 100644
--- a/example/simple.c
+++ b/example/simple.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "../jsmn.h"
diff --git a/jsmn.c b/jsmn.c
index 2809669b3..bbf013de4 100644
--- a/jsmn.c
+++ b/jsmn.c
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-
#include "jsmn.h"
/**