--- xterm-297.orig/xterm.h	2013-09-10 12:55:04.000000000 +0200
+++ xterm-297/xterm.h	2013-10-30 17:19:53.000000000 +0100
@@ -99,7 +99,7 @@
 #define HAVE_PUTENV 1
 #endif
 
-#if defined(CSRG_BASED) || defined(__GNU__)
+#if defined(CSRG_BASED) || defined(__linux__)
 #define USE_POSIX_TERMIOS 1
 #endif