twolame: fix static linking with libmagic
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 8 Nov 2018 20:15:32 +0000 (21:15 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 8 Nov 2018 21:20:51 +0000 (22:20 +0100)
commit393b205de132658d2a7e68d8c9d45de6298813c7
tree55e5a8e8df3c38384d73160bbd46b01e8e82bb07
parentd383a73a8e5f45f291afda56af912ab088f2f255
twolame: fix static linking with libmagic

libmagic (from file package) already provides the buffer_init function
so to avoid a build failure for applications wanting to statically link
with twolame and libmagic (for example sox), rename buffer_init into
bitbuffer_init (also rename buffer_deinit into bitbuffer_deinit and
buffer_sstell into bitbuffer_sstell for consistency)

Fixes:
 - http://autobuild.buildroot.org/results/b3fc62e7f372fe595966e84091c11ccdb4cfa77c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/twolame/0001-Fix-static-linking-with-libmagic.patch [new file with mode: 0644]