summaryrefslogtreecommitdiff
path: root/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-07-25 16:53:51 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-27 00:48:27 +0200
commitaaa2b660a9f9f0446fb2ebd4dde7c76c9750f9c8 (patch)
treee066a77b31cbfbd1a5e053057e8e27379c5a6047 /package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
parent5ca30174bff85592d3f4f2636b54ca5155671afe (diff)
setserial: convert to autotargets and fix manpages install
Close #2269 [Peter: fix Makefile patch to not strip wrong file, rename hayes patch] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch')
-rw-r--r--package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch b/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
new file mode 100644
index 000000000..176a0c9e1
--- /dev/null
+++ b/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
@@ -0,0 +1,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 ", "