X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcsim%2Fsilcsim.h;h=357ab5735e81a86a7fdfb4a4aaf8af880de1000f;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=d9a50095e789e264152e301c671dc3860e1ca3af;hpb=d9fe4b3eea3917c3dd32a089d497b39b82a5e4cf;p=silc.git diff --git a/lib/silcsim/silcsim.h b/lib/silcsim/silcsim.h index d9a50095..357ab573 100644 --- a/lib/silcsim/silcsim.h +++ b/lib/silcsim/silcsim.h @@ -2,14 +2,13 @@ silcsim.h - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 2000 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,8 +33,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,