diff options
Diffstat (limited to 'src/dynlib.c')
| -rw-r--r-- | src/dynlib.c | 4 |
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 | ||
| 282 | dynlib_handle_ptr | 283 | dynlib_handle_ptr |
| 283 | dynlib_open_for_eln (const char *path) | 284 | dynlib_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 | ||
| 288 | void * | 290 | void * |
| 289 | dynlib_sym (dynlib_handle_ptr h, const char *sym) | 291 | dynlib_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 | ||
| 316 | int | 319 | int |
| 317 | dynlib_close (dynlib_handle_ptr h) | 320 | dynlib_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 | ||