diff options
author | Roy Marples <roy@marples.name> | 2008-03-02 10:40:08 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-02 10:40:08 +0000 |
commit | 7c092fbc7904be18510eed08c72cbad974db8adc (patch) | |
tree | b1fc37769c6657a4bce52f56cf51e21325448c3e /src/librc/librc.c | |
parent | a135d0d93b6ff1aebd0064b4b2afbc7e0313b1fd (diff) |
If build in a prefix, define the system as prefix.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r-- | src/librc/librc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 42779276..5525f2f3 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -186,6 +186,10 @@ static bool file_regex (const char *file, const char *regex) const char *rc_sys (void) { +#ifdef PREFIX + return (RC_SYS_PREFIX); +#else + #ifdef __FreeBSD__ int jailed = 0; size_t len = sizeof (jailed); @@ -208,6 +212,7 @@ const char *rc_sys (void) #endif return (NULL); +#endif /* PREFIX */ } static const char *rc_parse_service_state (rc_service_state_t state) |