Skip to content

Commit

Permalink
libcanberra: Fix implicit declaration of function
Browse files Browse the repository at this point in the history
declared in system `<malloc.h>`.

%ci:no-build
  • Loading branch information
xtkoba committed Apr 3, 2023
1 parent 87d6f06 commit 2b62e5a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x11-packages/libcanberra/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 2b62e5a

Please sign in to comment.