Skip to content

Commit 9214156

Browse files
littlewu2508williamh
authored andcommitted
rc.h.in: drop PREFIX macro, thus unify softlevel file location
Warning: it conflicts with a9272f5 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
1 parent 4574b5d commit 9214156

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/librc/rc.h.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ extern "C" {
2626
#define RC_SYSCONFDIR "@SYSCONFDIR@"
2727
#define RC_LIBDIR "@PREFIX@/@LIB@/rc"
2828
#define RC_LIBEXECDIR "@LIBEXECDIR@"
29-
#if defined(PREFIX)
3029
#define RC_SVCDIR RC_LIBEXECDIR "/init.d"
31-
#elif defined(__linux__) || (defined(__FreeBSD_kernel__) && \
30+
#if defined(__linux__) || (defined(__FreeBSD_kernel__) && \
3231
defined(__GLIBC__)) || defined(__GNU__)
33-
#define RC_SVCDIR "/run/openrc"
32+
#define RC_SVCDIR RC_PREFIX "/run/openrc"
3433
#else
3534
#define RC_SVCDIR RC_LIBEXECDIR "/init.d"
3635
#endif

0 commit comments

Comments
 (0)