projects
/
~emulex
/
for-vlad
/
old
/
compat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
compat: add tty_set_termios only for kernel >= 2.6.27
[~emulex/for-vlad/old/compat.git]
/
compat
/
compat-2.6.39.c
diff --git
a/compat/compat-2.6.39.c
b/compat/compat-2.6.39.c
index
c2966f7
..
8d85877
100644
(file)
--- a/
compat/compat-2.6.39.c
+++ b/
compat/compat-2.6.39.c
@@
-11,6
+11,7
@@
#include <linux/compat.h>
#include <linux/tty.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
/*
* Termios Helper Methods
*/
@@
-108,4
+109,5
@@
int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios)
return 0;
}
EXPORT_SYMBOL_GPL(tty_set_termios);
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) */