summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild')
-rw-r--r--app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild b/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild
index 21da94df5003..acadabdeaa4b 100644
--- a/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild
+++ b/app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit toolchain-funcs
+inherit toolchain-funcs eutils
MY_PV=${PV/_beta/b}
@@ -20,6 +20,7 @@ IUSE=""
S=${WORKDIR}/${PN}
src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.7.1-headers.patch
sed -i \
-e 's:__LINUX__:__linux__:' \
*.[ch] */*.[ch] || die
@@ -28,7 +29,8 @@ src_prepare() {
doit() { echo "$@"; "$@"; }
src_compile() {
- doit $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
+ # Need _GNU_SOURCE here for asprintf prototype.
+ doit $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE ${LDFLAGS} \
extract-xiso.c libftp-*/*.c -o extract-xiso || die
}