Changeset 5517:287ced72ce95 in roaraudio


Ignore:
Timestamp:
06/01/12 10:59:15 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Fixed detection of dynamic loader on *BSD.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5513 r5517  
    66        * Added a way to register plugin parts with a universal API (Closes: #245) 
    77        * Updated debian init script (Closes: #183) 
     8        * Fixed detection of dynamic loader on *BSD. 
    89 
    910v. 1.0beta1 - Sat May 12 2012 11:49 CEST 
  • configure

    r5493 r5517  
    16561656test_lib_defmake ROAR_HAVE_H_WINSOCK     %            winsock.h     c          -- winsock.h 
    16571657test_lib_defmake ROAR_HAVE_H_WINSOCK2    %            winsock2.h    c          -- winsock2.h 
     1658test_lib_defmake ROAR_HAVE_H_DLFCN       %            dlfcn.h       c          -- dlfcn.h 
    16581659MINIMAL=$OLD_MINIMAL 
    16591660 
  • include/libroar/libroar.h

    r5505 r5517  
    104104#endif 
    105105 
    106 #if defined(ROAR_HAVE_LIBDL) 
     106#if defined(ROAR_HAVE_H_DLFCN) 
    107107#include <dlfcn.h> 
    108108#endif 
  • libroar/roardl.c

    r5514 r5517  
    4040#endif 
    4141 
    42 #if defined(ROAR_HAVE_LIBDL) && !defined(RTLD_NEXT) 
     42#if defined(ROAR_HAVE_H_DLFCN) && !defined(RTLD_NEXT) 
    4343#define RTLD_NEXT ((void *) -1L) 
    4444#endif 
     
    6161 } context; 
    6262 unsigned int runtime_flags; 
    63 #if defined(ROAR_HAVE_LIBDL) 
     63#if defined(ROAR_HAVE_H_DLFCN) 
    6464 void * handle; 
    6565#elif defined(ROAR_TARGET_WIN32) 
     
    192192 
    193193 
    194 #if defined(ROAR_HAVE_LIBDL) 
     194#if defined(ROAR_HAVE_H_DLFCN) 
    195195static void * _roardl2ldl (struct roar_dl_lhandle * lhandle) { 
    196196 ROAR_DBG("_roardl2ldl(lhandle=%p) = ?", lhandle); 
     
    354354                                      int ra_init, struct roar_dl_librarypara * para) { 
    355355 struct roar_dl_lhandle * ret = NULL; 
    356 #if defined(ROAR_HAVE_LIBDL) 
     356#if defined(ROAR_HAVE_H_DLFCN) 
    357357#ifdef RTLD_DEEPBIND 
    358358 int libdl_flags = RTLD_DEEPBIND; 
     
    371371  return _roar_dl_open_pluginpath(filename, flags, ra_init, para); 
    372372 
    373 #if defined(ROAR_HAVE_LIBDL) 
     373#if defined(ROAR_HAVE_H_DLFCN) 
    374374 if ( flags & ROAR_DL_FLAG_LAZY ) { 
    375375  libdl_flags |= RTLD_LAZY; 
     
    396396  } 
    397397 } else { 
    398 #if defined(ROAR_HAVE_LIBDL) 
     398#if defined(ROAR_HAVE_H_DLFCN) 
    399399  ret->handle = dlopen(filename, libdl_flags); 
    400400 
     
    424424   err = roar_error; 
    425425   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) 
    427427   if ( ret->handle != NULL ) 
    428428    dlclose(ret->handle); 
     
    480480 } 
    481481 
    482 #if defined(ROAR_HAVE_LIBDL) 
     482#if defined(ROAR_HAVE_H_DLFCN) 
    483483 if ( lhandle->handle == NULL ) { 
    484484  ret = 0; 
     
    516516 
    517517void                   * 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) 
    519519 void * ret = dlsym(_roardl2ldl(lhandle), sym); 
    520520 
     
    664664 
    665665const char * roar_dl_errstr(struct roar_dl_lhandle * lhandle) { 
    666 #if defined(ROAR_HAVE_LIBDL) 
     666#if defined(ROAR_HAVE_H_DLFCN) 
    667667 (void)lhandle; 
    668668 return dlerror(); 
  • roarclients/roarpluginrunner.c

    r5484 r5517  
    8282 
    8383static const char * _ptr2str(const void * p) { 
    84 #if defined(ROAR_HAVE_LIBDL) && defined(ROAR_HAVE_DLADDR) 
     84#if defined(ROAR_HAVE_H_DLFCN) && defined(ROAR_HAVE_DLADDR) 
    8585 static char buf[80]; 
    8686 Dl_info info; 
     
    9292  return "<not set>"; 
    9393 
    94 #if defined(ROAR_HAVE_LIBDL) && defined(ROAR_HAVE_DLADDR) 
     94#if defined(ROAR_HAVE_H_DLFCN) && defined(ROAR_HAVE_DLADDR) 
    9595 if ( dladdr(p, &info) != 0 ) { 
    9696  if ( p == info.dli_saddr ) { 
Note: See TracChangeset for help on using the changeset viewer.