From 9ca547fff98522887700a9de41ca7235b60850f4 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 17 Sep 2002 10:14:42 +0000 Subject: [PATCH] Check for RTLD flags. --- lib/silcsim/silcsim.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/silcsim/silcsim.h b/lib/silcsim/silcsim.h index d9a50095..0d07f3cc 100644 --- a/lib/silcsim/silcsim.h +++ b/lib/silcsim/silcsim.h @@ -34,8 +34,13 @@ typedef enum { is that the symbols are resolved as they are loaded. However, if system doesn't support this we have no other choice but to do it lazy thus experience some overhead when using the symbol first time. */ +#if defined(RTLD_NOW) #define SILC_SIM_FLAGS RTLD_NOW -/*#define SILC_SIM_FLAGS RTLD_LAZY */ +#elif defined(RTLD_NOW) +#define SILC_SIM_FLAGS RTLD_LAZY +#else +#define SILC_SIM_FLAGS 0 +#endif /* Prototypes */ SilcSim silc_sim_alloc(SilcSimType type, const char *libname, -- 2.24.0