libcanberra: Fix implicit declaration of function
declared in system `<malloc.h>`. %ci:no-build
This commit is contained in:
parent
87d6f065e9
commit
2b62e5ad20
|
@ -8,3 +8,17 @@ TERMUX_PKG_SRCURL=http://0pointer.de/lennart/projects/libcanberra/libcanberra-$T
|
|||
TERMUX_PKG_SHA256=c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72
|
||||
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gstreamer, gtk3, harfbuzz, libcairo, libltdl, libvorbis, libx11, pango, pulseaudio"
|
||||
TERMUX_PKG_RECOMMENDS="zenity"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--disable-gtk
|
||||
--disable-tdb
|
||||
"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
# src/malloc.h prevents system <malloc.h> from being included
|
||||
if [ -e "src/malloc-private.h" ]; then
|
||||
termux_error_exit "src/malloc-private.h already exists."
|
||||
fi
|
||||
mv src/malloc.h src/malloc-private.h
|
||||
find src -name 'Makefile.*' -o -name '*.c' | xargs -n 1 \
|
||||
sed -i 's/malloc\.h/malloc-private.h/g'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue