mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Allow build without libdl and libpthread
Allow building alsa-lib without libdl and libpthread. Added new options to configure, --with-libdl and --with-pthread.
This commit is contained in:
parent
9a75eec664
commit
70e4ec9d08
21 changed files with 118 additions and 25 deletions
|
|
@ -29,7 +29,6 @@
|
|||
*/
|
||||
#include <inttypes.h>
|
||||
#include <byteswap.h>
|
||||
#include <dlfcn.h>
|
||||
#include "pcm_local.h"
|
||||
#include "pcm_plugin.h"
|
||||
#include "pcm_rate.h"
|
||||
|
|
@ -1326,7 +1325,7 @@ int snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sform
|
|||
free(rate);
|
||||
return -ENOENT;
|
||||
}
|
||||
open_func = dlsym(h, open_name);
|
||||
open_func = snd_dlsym(h, open_name, NULL);
|
||||
if (! open_func) {
|
||||
SNDERR("Cannot find function %s", open_name);
|
||||
snd_dlclose(h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue