The functions will only build for kernel version < 3.10 and >= 2.6.28,
so the same with the prototype.

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 backport/backport-include/linux/tty.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/backport-include/linux/tty.h 
b/backport/backport-include/linux/tty.h
index 88fbfd0..2f79ac5 100644
--- a/backport/backport-include/linux/tty.h
+++ b/backport/backport-include/linux/tty.h
@@ -48,7 +48,7 @@ extern int n_tty_ioctl_helper(struct tty_struct *tty, struct 
file *file,
        tty_register_device(driver, index, device)
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)) && (LINUX_VERSION_CODE >= 
KERNEL_VERSION(2,6,28))
 extern void tty_port_tty_wakeup(struct tty_port *port);
 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
 #endif
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to