From 4c814a0a285565bc09d662f602f93dbb938503c6 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 17 Jan 2016 22:39:11 -0800 Subject: librc: handle rc_sys="prefix" even if we weren't built with a prefix This probably isn't needed, but it mimics old behavior. --- src/librc/librc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/librc') diff --git a/src/librc/librc.c b/src/librc/librc.c index 8b4e8d4e..3e1f0d83 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -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 } -- cgit v1.2.3