--- setserial-2.17.orig/setserial.c	2000-01-27 07:40:52.000000000 -0800
+++ setserial-2.17/setserial.c	2015-04-16 22:18:31.863579564 -0700
@@ -10,6 +10,7 @@
  * Last modified: [tytso:19940520.0036EDT]
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <termios.h>
@@ -26,6 +27,9 @@
 
 #include "version.h"
 
+/* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f53a2ade0bb9f2a81f473e6469155172a96b7c38 */
+#undef TIOCGHAYESESP
+
 static char version_str[] = "setserial version " SETSERIAL_VERSION ", "
 	SETSERIAL_DATE;
 
