aboutsummaryrefslogtreecommitdiffstats
path: root/databases/grass/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-04-12 04:12:06 +0800
committermiwi <miwi@FreeBSD.org>2007-04-12 04:12:06 +0800
commitecfc9d97ee0b9a9e1d541efdb50cf9e69045615e (patch)
tree43df12317a0c6c018e6e75fb03ea8119a0649e42 /databases/grass/files
parentf91f08168223e52c56bd5c298191dcf3a1b0f10a (diff)
downloadfreebsd-ports-gnome-ecfc9d97ee0b9a9e1d541efdb50cf9e69045615e.tar.gz
freebsd-ports-gnome-ecfc9d97ee0b9a9e1d541efdb50cf9e69045615e.tar.zst
freebsd-ports-gnome-ecfc9d97ee0b9a9e1d541efdb50cf9e69045615e.zip
- Use termios.h when available
PR: 110879 Submitted by: Ed Schouten <ed@fxq.nl> Approved by: maintainer
Diffstat (limited to 'databases/grass/files')
-rw-r--r--databases/grass/files/patch-intr_char.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/grass/files/patch-intr_char.c b/databases/grass/files/patch-intr_char.c
new file mode 100644
index 000000000000..fe49370647dd
--- /dev/null
+++ b/databases/grass/files/patch-intr_char.c
@@ -0,0 +1,27 @@
+--- lib/gis/intr_char.c Thu Feb 9 04:08:56 2006
++++ lib/gis/intr_char.c Mon Mar 26 19:27:22 2007
+@@ -2,7 +2,11 @@
+
+ #include <grass/config.h>
+ #ifndef __MINGW32__
+-#ifdef HAVE_TERMIO_H
++#if defined(HAVE_TERMIOS_H)
++# include <termios.h>
++# define TYPE termios
++# define C c_cc[VINTR]
++#elif defined(HAVE_TERMIO_H)
+ # include <termio.h>
+ # define TYPE termio
+ # define C c_cc[VINTR]
+@@ -32,7 +36,11 @@
+ #ifndef __MINGW32__
+ struct TYPE buf;
+
++#ifdef HAVE_TERMIOS_H
++ tcgetattr (2, &buf);
++#else
+ ioctl (2, GET, &buf);
++#endif
+ c = buf.C;
+ #endif
+ return c;