Skip to content

Commit

Permalink
Do not use BSD interface for MIPS. hyperic#40
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanyin committed Aug 27, 2024
1 parent c8ec1d2 commit 2da9a99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sigar_getline.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ static void search_forw(int s); /* look forw for current string */
#if defined(__linux__) && defined(__alpha__)
# define R__ALPHALINUX // = linux on Alpha
#endif
#if defined(__linux__) && defined(__mips__)
# define R__MIPSLINUX // = linux on MIPS
#endif

#if defined(TIOCGETP) && !defined(__sgi) && !defined(R__MKLINUX) && \
!defined(R__ALPHALINUX) /* use BSD interface if possible */
!defined(R__ALPHALINUX) &&!defined(R__MIPSLINUX) /* use BSD interface if possible */
#include <sgtty.h>
static struct sgttyb new_tty, old_tty;
static struct tchars tch;
Expand All @@ -371,7 +374,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(R__MIPSLINUX)
#undef TIOCGETP /* Solaris and SGI define TIOCGETP in <termios.h> */
#undef TIOCSETP
#endif
Expand Down

0 comments on commit 2da9a99

Please sign in to comment.