summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-10-23 21:23:32 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-23 23:17:52 +0200
commitca3662b2d8848ade0e716eea470989f7dbec7e78 (patch)
treec21489deaa7cf768475dee75fe71cfa52ac9998d /backport
parentcffd5da5696f2223a0214488a8d85b936ef2c36d (diff)
backports: struct tty_port was added with kernel 2.6.28
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 <hauke@hauke-m.de>
Diffstat (limited to 'backport')
-rw-r--r--backport/backport-include/linux/tty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/backport/backport-include/linux/tty.h b/backport/backport-include/linux/tty.h
index 88fbfd03..2f79ac55 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