1 [PATCH] setserial: fix build with 2.6.33+ kernel headers
3 linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
4 define the TIOCGHAYESESP ioctl, breaking the build.
6 It's very unlikely to be of interest anymore, so just undef it.
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
11 1 file changed, 5 insertions(+)
13 Index: setserial-2.17/setserial.c
14 ===================================================================
15 --- setserial-2.17.orig/setserial.c
16 +++ setserial-2.17/setserial.c
19 #include <linux/serial.h>
21 +/* linux/hayesesp.h got removed in 2.6.33 but some archs (like x86)
22 + still define TIOCGHAYESESP. It's very unlikely to be of interest
23 + anymore, so just undef it */
28 static char version_str[] = "setserial version " SETSERIAL_VERSION ", "