kumquat-buildroot/package/setserial/0002-tiocghayesesp-build-fix.patch
Peter Korsgaard 298cd8eaa2 package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345)

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-03 14:52:56 +01:00

29 lines
880 B
Diff

[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 ", "