Changeset 5517:287ced72ce95 in roaraudio for libroar/roardl.c
- Timestamp:
- 06/01/12 10:59:15 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/roardl.c
r5514 r5517 40 40 #endif 41 41 42 #if defined(ROAR_HAVE_ LIBDL) && !defined(RTLD_NEXT)42 #if defined(ROAR_HAVE_H_DLFCN) && !defined(RTLD_NEXT) 43 43 #define RTLD_NEXT ((void *) -1L) 44 44 #endif … … 61 61 } context; 62 62 unsigned int runtime_flags; 63 #if defined(ROAR_HAVE_ LIBDL)63 #if defined(ROAR_HAVE_H_DLFCN) 64 64 void * handle; 65 65 #elif defined(ROAR_TARGET_WIN32) … … 192 192 193 193 194 #if defined(ROAR_HAVE_ LIBDL)194 #if defined(ROAR_HAVE_H_DLFCN) 195 195 static void * _roardl2ldl (struct roar_dl_lhandle * lhandle) { 196 196 ROAR_DBG("_roardl2ldl(lhandle=%p) = ?", lhandle); … … 354 354 int ra_init, struct roar_dl_librarypara * para) { 355 355 struct roar_dl_lhandle * ret = NULL; 356 #if defined(ROAR_HAVE_ LIBDL)356 #if defined(ROAR_HAVE_H_DLFCN) 357 357 #ifdef RTLD_DEEPBIND 358 358 int libdl_flags = RTLD_DEEPBIND; … … 371 371 return _roar_dl_open_pluginpath(filename, flags, ra_init, para); 372 372 373 #if defined(ROAR_HAVE_ LIBDL)373 #if defined(ROAR_HAVE_H_DLFCN) 374 374 if ( flags & ROAR_DL_FLAG_LAZY ) { 375 375 libdl_flags |= RTLD_LAZY; … … 396 396 } 397 397 } else { 398 #if defined(ROAR_HAVE_ LIBDL)398 #if defined(ROAR_HAVE_H_DLFCN) 399 399 ret->handle = dlopen(filename, libdl_flags); 400 400 … … 424 424 err = roar_error; 425 425 ROAR_WARN("roar_dl_open(filename='%s', flags=%i, ra_init=%i, para=%p): Can not init RA lib: %s", filename, flags, ra_init, para, roar_error2str(err)); 426 #if defined(ROAR_HAVE_ LIBDL)426 #if defined(ROAR_HAVE_H_DLFCN) 427 427 if ( ret->handle != NULL ) 428 428 dlclose(ret->handle); … … 480 480 } 481 481 482 #if defined(ROAR_HAVE_ LIBDL)482 #if defined(ROAR_HAVE_H_DLFCN) 483 483 if ( lhandle->handle == NULL ) { 484 484 ret = 0; … … 516 516 517 517 void * roar_dl_getsym(struct roar_dl_lhandle * lhandle, const char * sym, int type) { 518 #if defined(ROAR_HAVE_ LIBDL)518 #if defined(ROAR_HAVE_H_DLFCN) 519 519 void * ret = dlsym(_roardl2ldl(lhandle), sym); 520 520 … … 664 664 665 665 const char * roar_dl_errstr(struct roar_dl_lhandle * lhandle) { 666 #if defined(ROAR_HAVE_ LIBDL)666 #if defined(ROAR_HAVE_H_DLFCN) 667 667 (void)lhandle; 668 668 return dlerror();
Note: See TracChangeset
for help on using the changeset viewer.