librc: handle rc_sys="prefix" even if we weren't built with a prefix
This probably isn't needed, but it mimics old behavior.
This commit is contained in:
parent
36dde4e7f2
commit
4c814a0a28
@ -220,6 +220,13 @@ detect_prefix(const char *systype)
|
|||||||
#ifdef PREFIX
|
#ifdef PREFIX
|
||||||
return RC_SYS_PREFIX;
|
return RC_SYS_PREFIX;
|
||||||
#else
|
#else
|
||||||
|
if (systype) {
|
||||||
|
if (strcmp(systype, RC_SYS_NONE) == 0)
|
||||||
|
return NULL;
|
||||||
|
if (strcmp(systype, RC_SYS_PREFIX) == 0)
|
||||||
|
return RC_SYS_PREFIX;
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user