aboutsummaryrefslogtreecommitdiffstats
path: root/src/dynlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynlib.c')
-rw-r--r--src/dynlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index 8cb9a233745..e2c71f14489 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -279,11 +279,13 @@ dynlib_open (const char *path)
279 return dlopen (path, RTLD_LAZY | RTLD_GLOBAL); 279 return dlopen (path, RTLD_LAZY | RTLD_GLOBAL);
280} 280}
281 281
282# ifdef HAVE_NATIVE_COMP
282dynlib_handle_ptr 283dynlib_handle_ptr
283dynlib_open_for_eln (const char *path) 284dynlib_open_for_eln (const char *path)
284{ 285{
285 return dlopen (path, RTLD_LAZY); 286 return dlopen (path, RTLD_LAZY);
286} 287}
288# endif
287 289
288void * 290void *
289dynlib_sym (dynlib_handle_ptr h, const char *sym) 291dynlib_sym (dynlib_handle_ptr h, const char *sym)
@@ -313,11 +315,13 @@ dynlib_error (void)
313 return dlerror (); 315 return dlerror ();
314} 316}
315 317
318# ifdef HAVE_NATIVE_COMP
316int 319int
317dynlib_close (dynlib_handle_ptr h) 320dynlib_close (dynlib_handle_ptr h)
318{ 321{
319 return dlclose (h) == 0; 322 return dlclose (h) == 0;
320} 323}
324# endif
321 325
322#else 326#else
323 327