sci-libs/linux-gpib: Fix build (#537508)

Package-Manager: portage-2.2.24
This commit is contained in:
Pacho Ramos
2015-11-09 10:12:18 +01:00
parent 2582ba5d52
commit 71e559f857
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff -Naur linux-gpib-3.2.21.orig/drivers/gpib/sys/osfuncs.c linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c
--- linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c 2015-02-15 00:41:42.320008509 +0000
+++ linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c 2015-02-15 00:41:56.320008602 +0000
@@ -178,7 +178,7 @@
long ibioctl(struct file *filep, unsigned int cmd, unsigned long arg)
{
- unsigned int minor = iminor(filep->f_dentry->d_inode);
+ unsigned int minor = iminor(file_inode(filep));
gpib_board_t *board;
gpib_file_private_t *file_priv = filep->private_data;
long retval = -ENOTTY;

View File

@@ -42,6 +42,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.2.16-perl.patch
"${FILESDIR}"/${PN}-3.2.16-reallydie.patch
"${WORKDIR}"/${PN}-3.2.21-ctrl-c.patch
"${FILESDIR}"/${PN}-3.2.21-build2.patch
)
pkg_setup () {