From 1bd65c89248e464ad679fff8b1e488d52b4306ce Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 11 Mar 2017 11:20:20 +0300 Subject: [PATCH] Revert "check for tcgetpgrp() presence before using." This reverts commit c12d5be929d4c1c2826d678eda44e1f0ce6d37d6. It shouldn't be needed after commit 870adc5 --- configure.ac | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 35d9a18..4252913 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,6 @@ XMP_TRY_COMPILE(whether compiler understands -Wunused-result, int main(){}], CFLAGS="${CFLAGS} -Wno-unused-result") -AC_CHECK_FUNCS(kill getopt_long tcgetpgrp) +AC_CHECK_FUNCS(kill getopt_long) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT diff --git a/src/main.c b/src/main.c index 2b5a431..e8202a4 100644 --- a/src/main.c +++ b/src/main.c @@ -83,7 +83,7 @@ static void sigtstp_handler(int n) static void sigcont_handler(int sig) { -#if defined(HAVE_TERMIOS_H) && defined(HAVE_TCGETPGRP) +#ifdef HAVE_TERMIOS_H unsigned int old_in = foreground_in; foreground_in = tcgetpgrp(STDIN_FILENO) == getpgrp();