diff -up smc-tools-1.0.0/ld_pre_smc.c.glibc smc-tools-1.0.0/ld_pre_smc.c --- smc-tools-1.0.0/ld_pre_smc.c.glibc 2018-01-10 11:00:25.000000000 +0100 +++ smc-tools-1.0.0/ld_pre_smc.c 2018-01-10 11:01:42.000000000 +0100 @@ -20,8 +20,8 @@ #include #include #include +#include -#define LIBC_PATH "libc.so.6" #define DLOPEN_FLAG RTLD_LAZY #ifndef AF_SMC @@ -97,7 +97,7 @@ static void initialize(void) { set_debug_mode("SMC_DEBUG"); - dl_handle = dlopen(LIBC_PATH,DLOPEN_FLAG); + dl_handle = dlopen(LIBC_SO,DLOPEN_FLAG); if (!dl_handle) dbg_msg(stderr, "dlopen failed: %s\n", dlerror()); GET_FUNC(socket);