summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-10 05:18:21 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-10 05:18:21 -0400
commit42d326910296516e090e33ce16da6a3ced0f16d8 (patch)
tree77f12c1c7c35625c95acb5d1992ab1dbf2c30d08 /app-cdr/extract-xiso
parentextract-xiso: EAPI: bump to 5 (diff)
downloadgentoo-42d326910296516e090e33ce16da6a3ced0f16d8.tar.gz
gentoo-42d326910296516e090e33ce16da6a3ced0f16d8.tar.bz2
gentoo-42d326910296516e090e33ce16da6a3ced0f16d8.zip
extract-xiso: fix various missing prototype warnings
Diffstat (limited to 'app-cdr/extract-xiso')
-rw-r--r--app-cdr/extract-xiso/extract-xiso-2.7.1.ebuild6
-rw-r--r--app-cdr/extract-xiso/files/extract-xiso-2.7.1-headers.patch20
2 files changed, 24 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 21da94df500..acadabdeaa4 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
}
diff --git a/app-cdr/extract-xiso/files/extract-xiso-2.7.1-headers.patch b/app-cdr/extract-xiso/files/extract-xiso-2.7.1-headers.patch
new file mode 100644
index 00000000000..3de797050b4
--- /dev/null
+++ b/app-cdr/extract-xiso/files/extract-xiso-2.7.1-headers.patch
@@ -0,0 +1,20 @@
+fix missing prototype warnings
+
+--- a/libftp-5.0.1.modified.by.in/FtpLibrary.h
++++ b/libftp-5.0.1.modified.by.in/FtpLibrary.h
+@@ -20,6 +20,7 @@
+ extern "C" {
+ #endif
+
++#include <ctype.h>
+ #include <errno.h>
+ #include <stdio.h>
+ #include <stdarg.h>
+@@ -33,6 +34,7 @@
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <arpa/ftp.h>
++#include <arpa/inet.h>
+ #include <arpa/telnet.h>
+ #include <netinet/in.h>
+ #include <netdb.h>