xref: /OK3568_Linux_fs/buildroot/package/setserial/0002-tiocghayesesp-build-fix.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1[PATCH] setserial: fix build with 2.6.33+ kernel headers
2
3linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
4define the TIOCGHAYESESP ioctl, breaking the build.
5
6It's very unlikely to be of interest anymore, so just undef it.
7
8Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9---
10 setserial.c |    5 +++++
11 1 file changed, 5 insertions(+)
12
13Index: setserial-2.17/setserial.c
14===================================================================
15--- setserial-2.17.orig/setserial.c
16+++ setserial-2.17/setserial.c
17@@ -24,6 +24,11 @@
18 #endif
19 #include <linux/serial.h>
20
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 */
24+#undef TIOCGHAYESESP
25+
26 #include "version.h"
27
28 static char version_str[] = "setserial version " SETSERIAL_VERSION ", "
29