aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-01-17 22:39:11 -0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-19 00:09:20 -0600
commit4c814a0a285565bc09d662f602f93dbb938503c6 (patch)
tree4d7582727382dfb9788a169785f9d5c16d3d794a /src/librc
parent36dde4e7f21afba36a96837aa86f2b5d2dae3807 (diff)
librc: handle rc_sys="prefix" even if we weren't built with a prefix
This probably isn't needed, but it mimics old behavior.
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc.c7
1 files changed, 7 insertions, 0 deletions
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
}