1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From: Hilko Bengen <bengen@debian.org>
Date: Tue, 29 Jul 2014 16:41:18 +0200
Subject: make the package compile on MIPS
---
src/sigar_getline.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sigar_getline.c b/src/sigar_getline.c
index 0a8946b..fd36fef 100644
--- a/src/sigar_getline.c
+++ b/src/sigar_getline.c
@@ -362,7 +362,7 @@ static void search_forw(int s); /* look forw for current string */
#endif
#if defined(TIOCGETP) && !defined(__sgi) && !defined(R__MKLINUX) && \
- !defined(R__ALPHALINUX) /* use BSD interface if possible */
+ !defined(R__ALPHALINUX) && !defined(__mips__) /* use BSD interface if possible */
#include <sgtty.h>
static struct sgttyb new_tty, old_tty;
static struct tchars tch;
@@ -371,7 +371,7 @@ static struct ltchars ltch;
#ifdef SIGTSTP /* need POSIX interface to handle SUSP */
#include <termios.h>
#if defined(__sun) || defined(__sgi) || defined(R__MKLINUX) || \
- defined(R__ALPHALINUX)
+ defined(R__ALPHALINUX) || defined(__mips__)
#undef TIOCGETP /* Solaris and SGI define TIOCGETP in <termios.h> */
#undef TIOCSETP
#endif
@@ -412,7 +412,7 @@ gl_char_init() /* turn off input echo */
{
if (gl_notty) return;
#ifdef unix
-#ifdef TIOCGETP /* BSD */
+#if defined(TIOCGETP) && !defined(__mips__) /* BSD */
ioctl(0, TIOCGETC, &tch);
ioctl(0, TIOCGLTC, <ch);
gl_intrc = tch.t_intrc;
|