summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bar.c1
-rw-r--r--src/ctx.c3
-rw-r--r--src/diag.c1
-rw-r--r--src/eval.c1
-rw-r--r--src/opt.c1
-rw-r--r--src/pwcache.c2
-rw-r--r--src/sighook.c1
-rw-r--r--tests/bfstd.c1
-rw-r--r--tests/bit.c1
-rw-r--r--tests/ioq.c2
-rw-r--r--tests/list.c3
-rw-r--r--tests/main.c1
-rw-r--r--tests/sighook.c1
-rw-r--r--tests/xtime.c1
14 files changed, 10 insertions, 10 deletions
diff --git a/src/bar.c b/src/bar.c
index 24e51e9..3258df0 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -16,6 +16,7 @@
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
diff --git a/src/ctx.c b/src/ctx.c
index 411038e..2c55a35 100644
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -14,13 +14,14 @@
#include "sighook.h"
#include "stat.h"
#include "trie.h"
-#include "xtime.h"
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/stat.h>
+#include <time.h>
#include <unistd.h>
/** Get the initial value for ctx->threads (-j). */
diff --git a/src/diag.c b/src/diag.c
index 590d45c..4909cf5 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -11,7 +11,6 @@
#include "dstring.h"
#include "expr.h"
-#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/eval.c b/src/eval.c
index a97c73b..9789b5d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -34,6 +34,7 @@
#include <fnmatch.h>
#include <grp.h>
#include <pwd.h>
+#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/src/opt.c b/src/opt.c
index 425a540..290cf77 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -28,6 +28,7 @@
#include "opt.h"
#include "bfs.h"
+#include "bfstd.h"
#include "bftw.h"
#include "bit.h"
#include "color.h"
diff --git a/src/pwcache.c b/src/pwcache.c
index c2b575e..fa19dad 100644
--- a/src/pwcache.c
+++ b/src/pwcache.c
@@ -10,8 +10,6 @@
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
/** Represents cache hits for negative results. */
static void *MISSING = &MISSING;
diff --git a/src/sighook.c b/src/sighook.c
index 861a0b5..4356fdb 100644
--- a/src/sighook.c
+++ b/src/sighook.c
@@ -27,6 +27,7 @@
#include "thread.h"
#include <errno.h>
+#include <pthread.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/tests/bfstd.c b/tests/bfstd.c
index fe64ff3..a43783a 100644
--- a/tests/bfstd.c
+++ b/tests/bfstd.c
@@ -6,7 +6,6 @@
#include "bfstd.h"
#include "diag.h"
-#include <errno.h>
#include <langinfo.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/bit.c b/tests/bit.c
index 1446b13..cc95785 100644
--- a/tests/bit.c
+++ b/tests/bit.c
@@ -5,7 +5,6 @@
#include "bfs.h"
#include "bit.h"
-#include "diag.h"
#include <limits.h>
#include <stdint.h>
diff --git a/tests/ioq.c b/tests/ioq.c
index a2db813..f067436 100644
--- a/tests/ioq.c
+++ b/tests/ioq.c
@@ -3,12 +3,10 @@
#include "tests.h"
-#include "bfstd.h"
#include "diag.h"
#include "dir.h"
#include "ioq.h"
-#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
diff --git a/tests/list.c b/tests/list.c
index b3d74a1..5d0403f 100644
--- a/tests/list.c
+++ b/tests/list.c
@@ -4,8 +4,11 @@
#include "tests.h"
#include "bfs.h"
+#include "diag.h"
#include "list.h"
+#include <stddef.h>
+
struct item {
int n;
struct item *next;
diff --git a/tests/main.c b/tests/main.c
index dcb5d98..81c2311 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -7,7 +7,6 @@
#include "tests.h"
-#include "bfstd.h"
#include "color.h"
#include <locale.h>
diff --git a/tests/sighook.c b/tests/sighook.c
index 4121a44..aa01c36 100644
--- a/tests/sighook.c
+++ b/tests/sighook.c
@@ -7,6 +7,7 @@
#include "thread.h"
#include "sighook.h"
+#include <stddef.h>
#include <errno.h>
#include <pthread.h>
#include <signal.h>
diff --git a/tests/xtime.c b/tests/xtime.c
index c87a69e..3472bea 100644
--- a/tests/xtime.c
+++ b/tests/xtime.c
@@ -4,7 +4,6 @@
#include "tests.h"
#include "bfs.h"
-#include "bfstd.h"
#include "diag.h"
#include "xtime.h"