176a0c9e152aec4a34eb5fbf87f2f0c25a523fbb
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / setserial / 0002-tiocghayesesp-build-fix.patch
1 [PATCH] setserial: fix build with 2.6.33+ kernel headers
2
3 linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
4 define the TIOCGHAYESESP ioctl, breaking the build.
5
6 It's very unlikely to be of interest anymore, so just undef it.
7
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 ---
10  setserial.c |    5 +++++
11  1 file changed, 5 insertions(+)
12
13 Index: 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 ", "