From f5e06bc55ab1717ddff8c21f00f48cfcba8cb4a7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 14 Jan 2016 12:52:21 -0600 Subject: [PATCH] include rc.h properly in source files We were attempting to include rc.h in rc-misc.h instead of the source files where it should be included. --- src/includes/rc-misc.h | 1 - src/rc/_usage.c | 1 + src/rc/checkpath.c | 1 + src/rc/do_value.c | 1 + src/rc/is_newer_than.c | 1 + src/rc/is_older_than.c | 1 + src/rc/swclock.c | 1 + 7 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 96166341..f2449cd7 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -26,7 +26,6 @@ #include #include "helpers.h" -#include "rc.h" #define RC_LEVEL_BOOT "boot" #define RC_LEVEL_DEFAULT "default" diff --git a/src/rc/_usage.c b/src/rc/_usage.c index f0c7f0fc..9fc3e5d8 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -13,6 +13,7 @@ #include #include #include +#include "rc.h" #include "rc-misc.h" #include "_usage.h" #include "version.h" diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c index c44ffe8d..b1509940 100644 --- a/src/rc/checkpath.c +++ b/src/rc/checkpath.c @@ -30,6 +30,7 @@ #include #include "einfo.h" +#include "rc.h" #include "rc-misc.h" #include "rc-selinux.h" #include "_usage.h" diff --git a/src/rc/do_value.c b/src/rc/do_value.c index a511afd9..e6aa3ef0 100644 --- a/src/rc/do_value.c +++ b/src/rc/do_value.c @@ -28,6 +28,7 @@ #include #include "einfo.h" +#include "rc.h" #include "rc-misc.h" const char *applet = NULL; diff --git a/src/rc/is_newer_than.c b/src/rc/is_newer_than.c index f1aa9d61..4093ea82 100644 --- a/src/rc/is_newer_than.c +++ b/src/rc/is_newer_than.c @@ -15,6 +15,7 @@ #include #include +#include "rc.h" #include "rc-misc.h" int main(int argc, char **argv) diff --git a/src/rc/is_older_than.c b/src/rc/is_older_than.c index 87d56414..aea5377e 100644 --- a/src/rc/is_older_than.c +++ b/src/rc/is_older_than.c @@ -15,6 +15,7 @@ #include #include +#include "rc.h" #include "rc-misc.h" int main(int argc, char **argv) diff --git a/src/rc/swclock.c b/src/rc/swclock.c index 4b62a460..8245f116 100644 --- a/src/rc/swclock.c +++ b/src/rc/swclock.c @@ -30,6 +30,7 @@ #include #include "einfo.h" +#include "rc.h" #include "rc-misc.h" #include "_usage.h"