$OpenBSD: patch-Xwnmo_xwnmo_jhlp_c,v 1.2 2013/12/08 16:42:24 espie Exp $
--- Xwnmo/xwnmo/jhlp.c.orig	Thu Aug  4 09:10:14 1994
+++ Xwnmo/xwnmo/jhlp.c	Sun Dec  8 17:36:22 2013
@@ -89,12 +89,7 @@ static char rcs_id[] = "$Id: jhlp.c,v 1.26 1994/08/04 
 #include "config.h"
 #include "ext.h"
 
-#ifdef	BSD42
-#include <sgtty.h>
-#endif	/* BSD42 */
-#ifdef	SYSVR2
-#include <termio.h>
-#endif	/* SYSVR2 */
+#include <termios.h>
 extern char *optarg;
 extern int optind;
 
@@ -238,7 +233,7 @@ char	**argv;
 /* get rubout_code */
 #define UNDEF_STTY 0xff
 
-#ifdef BSD42
+#if 0
 static void
 get_rubout()
 {
@@ -253,13 +248,13 @@ get_rubout()
 }
 #endif /* BSD42 */
 
-#ifdef SYSVR2
+#if 1
 static void
 get_rubout()
 {
-    struct termio tmio;
+    struct termios tmio;
 
-    if ((ioctl(0, TCGETA, &tmio) < 0) ||
+    if ((tcgetattr(0, &tmio) < 0) ||
 	(tmio.c_cc[VERASE] == UNDEF_STTY)) {
 	rubout_code = RUBOUT;		/* BackSpase */
     } else {
@@ -415,7 +410,6 @@ char **argv;
     XLCd xlc;
 #endif /* X11R5 */
     extern char *get_server_env();
-    extern char *index();
 
     prgname = argv[0];
     if (create_arg_string(argv, argc) == -1) exit(1);
