Fix tparm usage on NetBSD - sacc - sacc(omys), simple console gopher client
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
Log
Files
Refs
Tags
LICENSE
---
commit e9b9894e29151ef7084e13729b629adb9651487c
parent c99d484c0e3619be44cb21f3b9f15d04a1e703c9
Author: Quentin Rameau 
Date:   Fri,  1 Sep 2017 10:49:52 +0200

Fix tparm usage on NetBSD

Use tiparm instead, which is the equivalent of tparm on other
implementations.

Thanks to Leonardo Taccari  for the report and to
k0ga for the advice!

Diffstat:
  M ui_ti.c                             |       4 ++++

1 file changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ui_ti.c b/ui_ti.c
@@ -15,6 +15,10 @@
 
 static struct termios tsave;
 static struct termios tsacc;
+#if defined(__NetBSD__)
+#undef tparm
+#define tparm tiparm
+#endif
 
 void
 uisetup(void)