media-libs/svgalib: fix build failures

1. Bug 576260.
App code needs C89 extern inlines. The sanes way is to use
-fgnu89-inlines.

2. Bug 583726.
Use long instead of int to avoid incompatible pointer type errors
(starting with linux-4.6.0)

Package-Manager: portage-2.3.0_rc1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
This commit is contained in:
Andrew Savchenko
2016-05-25 10:56:23 +03:00
parent e954caa338
commit 352186c283
2 changed files with 3 additions and 1 deletions
@@ -10,7 +10,7 @@
static int svgalib_helper_ioctl( struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg) {
+#else
+static int svgalib_helper_ioctl(struct file *filp,
+static long svgalib_helper_ioctl(struct file *filp,
+ unsigned int cmd, unsigned long arg) {
+ struct inode *inode=filp->f_dentry->d_inode;
+#endif
@@ -46,6 +46,8 @@ src_compile() {
use kernel-helper || export NO_HELPER=y
export CC=$(tc-getCC)
# C89 extern inlines are needed, see #576260
append-cflags -fgnu89-inline
# First build static
emake OPTIMIZE="${CFLAGS}" static