Make alsapid work when libasound is loaded with dlopen(). Fix for #180
commit60aaa492db336e5685ff19f3a2600bbbaf074cef
authorNedko Arnaudov <nedko@arnaudov.name>
Thu, 2 Jun 2011 21:44:00 +0000 (3 00:44 +0300)
committerNedko Arnaudov <nedko@arnaudov.name>
Thu, 2 Jun 2011 21:44:00 +0000 (3 00:44 +0300)
treefe6723f6dc3092ec756da52dd927964d910c94b9
parentcd3c2e4af45af43b3d3330f84180c6a7a74941a3
Make alsapid work when libasound is loaded with dlopen(). Fix for #180

when alsapid is preloaded libasound is not loaded yet
for some unknown reason, late call to dlvsym() fails as well,
at least for mididings (python loads _mididings.so that
implicitly loads libasound.so)

this changeset implements the late symbol lookup,
because it makes the code smaller

the actual fix is to LD_PRELOAD libasound.so as well
alsapid/lib.c
daemon/loader.c