Check for RTLD flags.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 17 Sep 2002 10:14:42 +0000 (10:14 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 17 Sep 2002 10:14:42 +0000 (10:14 +0000)
lib/silcsim/silcsim.h

index d9a50095e789e264152e301c671dc3860e1ca3af..0d07f3ccf84da40f548ad11c34fe6d5f39c7aef8 100644 (file)
@@ -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,