From c67c283b2adfa5930ca669c7232e2199692d3220 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 3 Mar 2008 08:06:53 +0000 Subject: [PATCH] Fix prefix test. --- src/includes/rc-misc.h | 2 ++ src/librc/librc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 4ba0f839..1294ed28 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -43,6 +43,8 @@ #ifndef PREFIX # define PREFIX "" +#else +# define HAVE_PREFIX #endif #define RC_LEVEL_BOOT "boot" diff --git a/src/librc/librc.c b/src/librc/librc.c index 5525f2f3..d292e856 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -186,7 +186,7 @@ static bool file_regex (const char *file, const char *regex) const char *rc_sys (void) { -#ifdef PREFIX +#ifdef HAVE_PREFIX return (RC_SYS_PREFIX); #else