Commit 5a2844c7 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

setserial: fix build with 2.6.33+ kernel headers on x86



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.

Reported-by: default avatarPaulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 9d3e9e0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
	X.org updated to 7.5.

	Updated/fixed packages: busybox, dosfstools, e2fsprogs,
	mtd-utils, squashfs
	mtd-utils, setserial, squashfs

	Issues resolved (http://bugs.uclibc.org):

+28 −0
Original line number Diff line number Diff line
[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 ", "