typo fix.
[silc.git] / lib / silcsim / silcsim.h
index b541b0ec7f63985575b64028c5a73b7787820df5..ca8880818858070c0b55234d20f6081ca4b693b9 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_LAZY)
+#define SILC_SIM_FLAGS RTLD_LAZY
+#else
+#define SILC_SIM_FLAGS 0
+#endif
 
 /* Prototypes */
 SilcSim silc_sim_alloc(SilcSimType type, const char *libname, 
@@ -43,7 +48,7 @@ SilcSim silc_sim_alloc(SilcSimType type, const char *libname,
 void silc_sim_free(SilcSim sim);
 int silc_sim_load(SilcSim sim);
 int silc_sim_close(SilcSim sim);
-char *silc_sim_error(SilcSim sim);
+const char *silc_sim_error(SilcSim sim);
 void *silc_sim_getsym(SilcSim sim, const char *symbol);
 
 #endif