aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc-daemon.c11
-rw-r--r--src/librc/librc-depend.c13
-rw-r--r--src/librc/librc-misc.c10
-rw-r--r--src/librc/librc-stringlist.c6
-rw-r--r--src/librc/librc.c19
-rw-r--r--src/librc/librc.h1
6 files changed, 58 insertions, 2 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index ec02e8b7..50245129 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -15,10 +15,21 @@
* except according to the terms contained in the LICENSE file.
*/
+#include <errno.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <limits.h>
#include <signal.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include "queue.h"
#include "librc.h"
+#include "helpers.h"
#if defined(__linux__) || (defined (__FreeBSD_kernel__) && defined(__GLIBC__)) \
|| defined(__GNU__)
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c
index 03149a52..d584af2c 100644
--- a/src/librc/librc-depend.c
+++ b/src/librc/librc-depend.c
@@ -16,9 +16,22 @@
*/
#include <sys/utsname.h>
+#include <ctype.h>
+#include <dirent.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <time.h>
+#include <unistd.h>
#include "queue.h"
#include "librc.h"
+#include "helpers.h"
+#include "misc.h"
#define GENDEP RC_LIBEXECDIR "/sh/gendepends.sh"
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index 9dfbaec0..575bcfce 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -16,11 +16,21 @@
*/
#include <fnmatch.h>
+#include <ctype.h>
+#include <dirent.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/stat.h>
#include "queue.h"
#include "librc.h"
#include "helpers.h"
+#include "misc.h"
bool
rc_yesno(const char *value)
diff --git a/src/librc/librc-stringlist.c b/src/librc/librc-stringlist.c
index ee352c5f..7fa7bd4d 100644
--- a/src/librc/librc-stringlist.c
+++ b/src/librc/librc-stringlist.c
@@ -15,8 +15,14 @@
* except according to the terms contained in the LICENSE file.
*/
+#include <errno.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "queue.h"
#include "librc.h"
+#include "helpers.h"
RC_STRINGLIST *
rc_stringlist_new(void)
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 34598529..da2ed4d0 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -15,9 +15,26 @@
* except according to the terms contained in the LICENSE file.
*/
+#include <helpers.h>
+#include <ctype.h>
+#include <dirent.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <libgen.h>
+#include <limits.h>
+#include <regex.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include "queue.h"
#include "librc.h"
-#include <helpers.h>
+#include "misc.h"
+#include "rc.h"
#ifdef __FreeBSD__
# include <sys/sysctl.h>
#endif
diff --git a/src/librc/librc.h b/src/librc/librc.h
index 09ab9276..260720ee 100644
--- a/src/librc/librc.h
+++ b/src/librc/librc.h
@@ -25,7 +25,6 @@
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/wait.h>
-
#include <ctype.h>
#include <dirent.h>
#include <errno.h>