about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--marco.c3
-rw-r--r--xxxterm.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/marco.c b/marco.c
index ad9e38a..250a0ff 100644
--- a/marco.c
+++ b/marco.c
@@ -17,6 +17,9 @@
 
 #include <stdlib.h>
 #include <string.h>
+#if defined(__linux__)
+#include <bsd/stdlib.h>
+#endif
 
 static const char *message[] = {
 	"I fully support your right to put restrictions on how I can modify"
diff --git a/xxxterm.c b/xxxterm.c
index e362f85..1c3509c 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -45,6 +45,7 @@
 #if defined(__linux__)
 #include "linux/util.h"
 #include "linux/tree.h"
+#include <bsd/stdlib.h>
 #elif defined(__FreeBSD__)
 #include <libutil.h>
 #include "freebsd/util.h"