diff -urN origs/gpm-1.20.4/Makefile.include gpm-1.20.4/Makefile.include
diff -urN origs/gpm-1.20.4/config.log gpm-1.20.4/config.log
diff -urN origs/gpm-1.20.4/config.status gpm-1.20.4/config.status
diff -urN origs/gpm-1.20.4/configure gpm-1.20.4/configure
diff -urN origs/gpm-1.20.4/contrib/Makefile gpm-1.20.4/contrib/Makefile
diff -urN origs/gpm-1.20.4/debian/changelog gpm-1.20.4/debian/changelog
--- origs/gpm-1.20.4/debian/changelog	2013-02-10 02:37:48.000000000 +0000
+++ gpm-1.20.4/debian/changelog	2013-02-10 02:33:54.000000000 +0000
@@ -1,3 +1,9 @@
+gpm (1.20.4-6eglibc1) unstable; urgency=low
+
+  * Fix to build with  eglibc2.17 
+
+ -- Wookey <wookey@e102475-lin>  Sun, 10 Feb 2013 02:32:49 +0000
+
 gpm (1.20.4-6) unstable; urgency=low
 
   * No source changes; rebuild to make the multiarch *.gz md5sums match.
diff -urN origs/gpm-1.20.4/debian/patches/095_libc2.17-fix-major.patch gpm-1.20.4/debian/patches/095_libc2.17-fix-major.patch
--- origs/gpm-1.20.4/debian/patches/095_libc2.17-fix-major.patch	1970-01-01 00:00:00.000000000 +0000
+++ gpm-1.20.4/debian/patches/095_libc2.17-fix-major.patch	2013-02-10 02:31:25.000000000 +0000
@@ -0,0 +1,14 @@
+Index: gpm-1.20.4/src/daemon/open_console.c
+===================================================================
+--- gpm-1.20.4.orig/src/daemon/open_console.c	2008-05-28 23:26:09.000000000 +0000
++++ gpm-1.20.4/src/daemon/open_console.c	2013-02-10 02:27:30.000000000 +0000
+@@ -21,7 +21,8 @@
+ 
+ #include <fcntl.h>                  /* open and co.      */
+ #include <sys/stat.h>               /* stat()            */
+-#include <stropts.h>                /* ioctl             */
++#include <sys/ioctl.h>              /* ioctl() */
++#include <sys/types.h>              /* major() */
+ 
+ /* Linux specific (to be outsourced in gpm2 */
+ #include <linux/serial.h>           /* for serial console check */
diff -urN origs/gpm-1.20.4/debian/patches/series gpm-1.20.4/debian/patches/series
--- origs/gpm-1.20.4/debian/patches/series	2013-02-10 02:37:48.000000000 +0000
+++ gpm-1.20.4/debian/patches/series	2013-02-10 02:30:56.000000000 +0000
@@ -18,3 +18,4 @@
 070_struct_ucred
 080_cross-compile.patch
 090_linux3_versions
+095_libc2.17-fix-major.patch
diff -urN origs/gpm-1.20.4/doc/Makefile gpm-1.20.4/doc/Makefile
diff -urN origs/gpm-1.20.4/doc/doc.gpm gpm-1.20.4/doc/doc.gpm
diff -urN origs/gpm-1.20.4/doc/gpm-mouse-test.8 gpm-1.20.4/doc/gpm-mouse-test.8
diff -urN origs/gpm-1.20.4/doc/gpm.info gpm-1.20.4/doc/gpm.info
diff -urN origs/gpm-1.20.4/src/Makefile gpm-1.20.4/src/Makefile
diff -urN origs/gpm-1.20.4/src/headers/config.h gpm-1.20.4/src/headers/config.h
