summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--src/config.h2
-rw-r--r--src/run.h2
-rw-r--r--src/skonfig.c2
-rw-r--r--src/util/fs.h2
-rw-r--r--src/util/string.h2
6 files changed, 1 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index 9a39a0e..00cd7b4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
AM_CPPFLAGS = -DSYSCONFDIR='"${sysconfdir}"'
AM_CFLAGS = -std=c99 -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200112L
AM_CFLAGS += -Wall
+AM_CFLAGS += -include config.h
if DEBUG
AM_CFLAGS += -O0 -g
diff --git a/src/config.h b/src/config.h
index 6594618..f6dbcf5 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,8 +1,6 @@
#ifndef _SK_CONFIG_H
#define _SK_CONFIG_H
-#include "../config.h"
-
#include "log.h"
#include <stdio.h>
diff --git a/src/run.h b/src/run.h
index 1fd46b6..2dded89 100644
--- a/src/run.h
+++ b/src/run.h
@@ -1,8 +1,6 @@
#ifndef _SK_RUN_H
#define _SK_RUN_H
-#include "../config.h"
-
#include "config.h"
#if HAVE_STDBOOL_H
diff --git a/src/skonfig.c b/src/skonfig.c
index a3cc6cf..4b1002e 100644
--- a/src/skonfig.c
+++ b/src/skonfig.c
@@ -1,5 +1,3 @@
-#include "../config.h"
-
#include "config.h"
#include "log.h"
#include "run.h"
diff --git a/src/util/fs.h b/src/util/fs.h
index 9dc445f..9701bc8 100644
--- a/src/util/fs.h
+++ b/src/util/fs.h
@@ -1,8 +1,6 @@
#ifndef _SK_UTIL_FS_H
#define _SK_UTIL_FS_H
-#include "../../config.h"
-
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
diff --git a/src/util/string.h b/src/util/string.h
index 39c9268..c244a29 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -1,8 +1,6 @@
#ifndef _SK_UTIL_STRING_H
#define _SK_UTIL_STRING_H
-#include "../../config.h"
-
#include "array.h"
#include <stddef.h>