0002-tiocghayesesp-build-fix.patch 880 B

12345678910111213141516171819202122232425262728
  1. [PATCH] setserial: fix build with 2.6.33+ kernel headers
  2. linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
  3. define the TIOCGHAYESESP ioctl, breaking the build.
  4. It's very unlikely to be of interest anymore, so just undef it.
  5. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  6. ---
  7. setserial.c | 5 +++++
  8. 1 file changed, 5 insertions(+)
  9. Index: setserial-2.17/setserial.c
  10. ===================================================================
  11. --- setserial-2.17.orig/setserial.c
  12. +++ setserial-2.17/setserial.c
  13. @@ -24,6 +24,11 @@
  14. #endif
  15. #include <linux/serial.h>
  16. +/* linux/hayesesp.h got removed in 2.6.33 but some archs (like x86)
  17. + still define TIOCGHAYESESP. It's very unlikely to be of interest
  18. + anymore, so just undef it */
  19. +#undef TIOCGHAYESESP
  20. +
  21. #include "version.h"
  22. static char version_str[] = "setserial version " SETSERIAL_VERSION ", "