From 2b8063b576a312fc3a8b7be9db6d3717e8151c31 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 10 Nov 2012 13:41:43 +0000 Subject: [PATCH] trying to fix #2645 -- support lib64/gnunet/libexec/ installations --- src/util/os_installation.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/util/os_installation.c b/src/util/os_installation.c index 035259ff6..b82060bca 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -143,6 +143,7 @@ DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) return TRUE; } + /** * Try to determine path with win32-specific function * @@ -490,7 +491,8 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind) ((0 == strcasecmp (&execpath[n - 5], "lib32")) || (0 == strcasecmp (&execpath[n - 5], "lib64")))) { - if (GNUNET_OS_IPK_LIBDIR != dirkind) + if ( (GNUNET_OS_IPK_LIBDIR != dirkind) && + (GNUNET_OS_IPK_LIBEXECDIR != dirkind) ) { /* strip '/lib32' or '/lib64' */ execpath[n - 5] = '\0'; @@ -544,9 +546,14 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind) "gnunet" DIR_SEPARATOR_STR; break; case GNUNET_OS_IPK_LIBEXECDIR: - dirname = + if (isbasedir) + dirname = DIR_SEPARATOR_STR "lib" DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR \ "libexec" DIR_SEPARATOR_STR; + else + dirname = + DIR_SEPARATOR_STR "gnunet" DIR_SEPARATOR_STR \ + "libexec" DIR_SEPARATOR_STR; break; default: GNUNET_free (execpath); -- 2.25.1