aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/rc.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 32dbef08..b5a87b5e 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -37,7 +37,9 @@ __BEGIN_DECLS
#define RC_SYSCONFDIR "@SYSCONFDIR@"
#define RC_LIBDIR "@PREFIX@/@LIB@/rc"
#define RC_LIBEXECDIR "@LIBEXECDIR@"
-#ifdef __linux__
+#if defined(PREFIX)
+#define RC_SVCDIR RC_LIBEXECDIR "/init.d"
+#elif defined(__linux__)
#define RC_SVCDIR "@PREFIX@/run/openrc"
#else
#define RC_SVCDIR RC_LIBEXECDIR "/init.d"