Signed-off-by: Joonwoo Park <[email protected]>
---
 elements/linuxmodule/touserdevice.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/elements/linuxmodule/touserdevice.cc 
b/elements/linuxmodule/touserdevice.cc
index fc0dc41..b3fa85b 100644
--- a/elements/linuxmodule/touserdevice.cc
+++ b/elements/linuxmodule/touserdevice.cc
@@ -91,7 +91,11 @@ void ToUserDevice::static_initialize()
        dev_fops->poll    = dev_poll;
        dev_fops->open    = dev_open;
        dev_fops->release = dev_release;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
+       dev_fops->unlocked_ioctl = dev_ioctl;
+#else
        dev_fops->ioctl   = dev_ioctl;
+#endif
     }
 }
 
-- 
1.7.1


_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to