aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-01-03 03:56:03 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-01-03 03:56:03 +0100
commit22bcb9599c83f396c54b09408beb9d8c2e5cff92 (patch)
tree76214834f3edc8155d7cdbed83463d34edca6ce5 /src/blogc-make
parentbbbaf43e40e2b1fdfd8b82607035b19147b42aea (diff)
downloadblogc-22bcb9599c83f396c54b09408beb9d8c2e5cff92.tar.gz
blogc-22bcb9599c83f396c54b09408beb9d8c2e5cff92.tar.bz2
blogc-22bcb9599c83f396c54b09408beb9d8c2e5cff92.zip
make: fixed includes
Diffstat (limited to 'src/blogc-make')
-rw-r--r--src/blogc-make/ctx.c3
-rw-r--r--src/blogc-make/ctx.h2
-rw-r--r--src/blogc-make/exec-native.c1
-rw-r--r--src/blogc-make/exec.c2
-rw-r--r--src/blogc-make/main.c1
-rw-r--r--src/blogc-make/rules.c6
-rw-r--r--src/blogc-make/settings.c1
-rw-r--r--src/blogc-make/settings.h1
8 files changed, 7 insertions, 10 deletions
diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c
index 454f99a..2a4426d 100644
--- a/src/blogc-make/ctx.c
+++ b/src/blogc-make/ctx.c
@@ -6,13 +6,12 @@
* See the file LICENSE.
*/
-#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include <libgen.h>
#include <time.h>
#include <stdlib.h>
#include <stdbool.h>
+#include "../common/error.h"
#include "../common/file.h"
#include "../common/utils.h"
#include "atom.h"
diff --git a/src/blogc-make/ctx.h b/src/blogc-make/ctx.h
index 3e18048..05e85fc 100644
--- a/src/blogc-make/ctx.h
+++ b/src/blogc-make/ctx.h
@@ -12,6 +12,8 @@
#include <stdbool.h>
#include <time.h>
#include "settings.h"
+#include "../common/error.h"
+#include "../common/utils.h"
typedef struct {
char *path;
diff --git a/src/blogc-make/exec-native.c b/src/blogc-make/exec-native.c
index 8b87d18..3181677 100644
--- a/src/blogc-make/exec-native.c
+++ b/src/blogc-make/exec-native.c
@@ -11,7 +11,6 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
-#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index 987ff2b..bb0a323 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -11,10 +11,8 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
-#include <libgen.h>
#include "../common/error.h"
#include "../common/file.h"
#include "../common/utils.h"
diff --git a/src/blogc-make/main.c b/src/blogc-make/main.c
index 6f5d040..1e43580 100644
--- a/src/blogc-make/main.c
+++ b/src/blogc-make/main.c
@@ -14,7 +14,6 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include "../common/error.h"
#include "../common/utils.h"
#include "ctx.h"
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index 8a26fb5..b2416f0 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -11,15 +11,13 @@
#include <string.h>
#include <stdlib.h>
#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include <math.h>
#include "../common/utils.h"
#include "ctx.h"
#include "exec.h"
#include "exec-native.h"
#include "rules.h"
+#include "settings.h"
// INDEX RULE
@@ -561,7 +559,7 @@ runserver_exec(bm_ctx_t *ctx, bc_slist_t *outputs, bool verbose)
}
-const bm_rule_t const rules[] = {
+const bm_rule_t rules[] = {
{
.name = "all",
.help = "run all build rules",
diff --git a/src/blogc-make/settings.c b/src/blogc-make/settings.c
index 27b3d80..3a45854 100644
--- a/src/blogc-make/settings.c
+++ b/src/blogc-make/settings.c
@@ -7,6 +7,7 @@
*/
#include <libgen.h>
+#include <stdbool.h>
#include <stdlib.h>
#include "../common/config-parser.h"
#include "../common/error.h"
diff --git a/src/blogc-make/settings.h b/src/blogc-make/settings.h
index 0ba9545..87d8fe9 100644
--- a/src/blogc-make/settings.h
+++ b/src/blogc-make/settings.h
@@ -9,6 +9,7 @@
#ifndef _MAKE_SETTINGS_H
#define _MAKE_SETTINGS_H
+#include <stddef.h>
#include "../common/error.h"
#include "../common/utils.h"