1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/misc/heyu/files/patch-tty.c
Martin Wilke c28428c4d5 The heyu port makes use of <sgtty.h>, though it supports <termios.h>
when -DPOSIX is turned on. Using <sgtty.h> is bad, because it breaks
on kernels without COMPAT_43TTY

PR:             110360
Submitted by:   Ed Schouten <ed@fxq.nl>
Approved by:    maintainer
2007-03-16 21:05:59 +00:00

17 lines
315 B
C

--- tty.c Sun Mar 30 22:57:59 2003
+++ tty.c Thu Mar 15 22:48:59 2007
@@ -86,11 +86,11 @@
#include <sgtty.h>
struct sgttyb oldsb, newsb;
#else
-#ifndef POSIX
-#include <termio.h>
#ifndef NCC
#define NCC NCCS
#endif
+#ifndef POSIX
+#include <termio.h>
struct termio oldsb, newsb;
#else
#include <termios.h>