diff -Naur gpm-1.20.6.orig/src/daemon/open_console.c gpm-1.20.6/src/daemon/open_console.c
--- gpm-1.20.6.orig/src/daemon/open_console.c	2009-02-09 09:58:53.000000000 +0000
+++ gpm-1.20.6/src/daemon/open_console.c	2012-01-13 18:09:32.000000000 +0000
@@ -21,7 +21,7 @@
 
 #include <fcntl.h>                  /* open and co.      */
 #include <sys/stat.h>               /* stat()            */
-#include <stropts.h>                /* ioctl             */
+/*#include <stropts.h>                 ioctl             */
 
 /* Linux specific (to be outsourced in gpm2 */
 #include <linux/serial.h>           /* for serial console check */
