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:
Doug Freed 2016-01-17 22:39:11 -08:00 committed by William Hubbs
parent 36dde4e7f2
commit 4c814a0a28

View File

@ -220,6 +220,13 @@ detect_prefix(const char *systype)
#ifdef PREFIX
return RC_SYS_PREFIX;
#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;
#endif
}