From 0aaa37f721c1cf0eb4e769fccbd220a04331d3d7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 25 Mar 2016 18:13:15 -0500 Subject: [PATCH] ircd: only relocate_paths on windows, no point on posix --- ircd/ircd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/ircd.c b/ircd/ircd.c index 627d469ba..8a16ffa48 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -396,6 +396,7 @@ initialize_server_capabs(void) * output - none * side effects - items in ircd_paths[] array are relocated */ +#ifdef _WIN32 static void relocate_paths(void) { @@ -466,6 +467,7 @@ relocate_paths(void) ircd_paths[IRCD_PATH_BIN] = rb_strdup(workbuf); ircd_paths[IRCD_PATH_LIBEXEC] = rb_strdup(workbuf); } +#endif /* * write_pidfile @@ -656,7 +658,7 @@ charybdis_main(int argc, char *argv[]) } #endif -#ifndef ENABLE_FHS_PATHS +#ifdef _WIN32 relocate_paths(); #endif