File hanterm-xf-powerpc.patch of Package hanterm-xf
diff -ru hanterm-xf-2.0.4-172.orig/main.c hanterm-xf-2.0.4-172/main.c
--- hanterm-xf-2.0.4-172.orig/main.c 2002-12-30 03:14:00.000000000 +0100
+++ hanterm-xf-2.0.4-172/main.c 2003-02-15 13:32:50.000000000 +0100
@@ -3458,8 +3458,10 @@
HsSysError(cp_pipe[1], ERROR_TIOCLSET);
#endif /* TIOCLSET */
#ifndef USE_POSIX_TERMIOS
+#if !defined(__powerpc__)
if (ioctl(tty, TCSETA, &tio) == -1)
HsSysError(cp_pipe[1], ERROR_TIOCSETP);
+#endif
#else /* USE_POSIX_TERMIOS */
if (tcsetattr(tty, TCSANOW, &tio) == -1)
HsSysError(cp_pipe[1], ERROR_TIOCSETP);