Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Integration of QUIX86 decoder libraries. Debug and optimized versions.
[palacios.releases.git] / linux_module / iface-host-dev.c
index 23d05e7..a1e69c4 100644 (file)
@@ -342,7 +342,6 @@ static int host_dev_release(struct inode * i, struct file * filp)
     return 0;
 }
 
-
 static int host_dev_ioctl(struct inode *ip, struct file *fp, unsigned int val, unsigned long arg)
 {
     void __user *argp = (void __user *)arg;
@@ -596,13 +595,19 @@ static int host_dev_ioctl(struct inode *ip, struct file *fp, unsigned int val, u
     
 }
 
-
-
+static long host_dev_compat_ioctl(struct file * filp, unsigned int ioctl, unsigned long arg)
+{
+       return host_dev_ioctl(NULL, filp, ioctl, arg);
+}
 
 static struct file_operations host_dev_fops = {
     .poll     = host_dev_poll,
     .release  = host_dev_release,
-    .ioctl    = host_dev_ioctl,
+#ifdef HAVE_COMPAT_IOCTL
+    .compat_ioctl = host_dev_compat_ioctl,
+#else
+    .ioctl = host_dev_ioctl,
+#endif
 };