aboutsummaryrefslogtreecommitdiffstats
path: root/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
blob: 176a0c9e152aec4a34eb5fbf87f2f0c25a523fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[PATCH] setserial: fix build with 2.6.33+ kernel headers

linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
define the TIOCGHAYESESP ioctl, breaking the build.

It's very unlikely to be of interest anymore, so just undef it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 setserial.c |    5 +++++
 1 file changed, 5 insertions(+)

Index: setserial-2.17/setserial.c
===================================================================
--- setserial-2.17.orig/setserial.c
+++ setserial-2.17/setserial.c
@@ -24,6 +24,11 @@
 #endif
 #include <linux/serial.h>
 
+/* linux/hayesesp.h got removed in 2.6.33 but some archs (like x86)
+   still define TIOCGHAYESESP. It's very unlikely to be of interest
+   anymore, so just undef it */
+#undef TIOCGHAYESESP
+
 #include "version.h"
 
 static char version_str[] = "setserial version " SETSERIAL_VERSION ", "