TIOCGETC, etc. are not supported on MIPS. This patch modifies several macros to make the package compile on MIPS.
--- hyperic-sigar-1.6.4+dfsg/src/sigar_getline.c 2013-01-27 22:39:57.000000000 +0000 +++ hyperic-sigar-1.6.4+dfsg.mine/src/sigar_getline.c 2014-07-29 09:17:56.888202734 +0000 @@ -362,7 +362,7 @@ #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 @@ #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 @@ { 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;
signature.asc
Description: Digital signature