Skip to content

Commit 1bd65c8

Browse files
sezerocmatsuoka
authored andcommitted
Revert "check for tcgetpgrp() presence before using."
This reverts commit c12d5be. It shouldn't be needed after commit 870adc5
1 parent 5e5ba53 commit 1bd65c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,6 @@ XMP_TRY_COMPILE(whether compiler understands -Wunused-result,
241241
int main(){}],
242242
CFLAGS="${CFLAGS} -Wno-unused-result")
243243

244-
AC_CHECK_FUNCS(kill getopt_long tcgetpgrp)
244+
AC_CHECK_FUNCS(kill getopt_long)
245245
AC_CONFIG_FILES([Makefile src/Makefile])
246246
AC_OUTPUT

src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static void sigtstp_handler(int n)
8383

8484
static void sigcont_handler(int sig)
8585
{
86-
#if defined(HAVE_TERMIOS_H) && defined(HAVE_TCGETPGRP)
86+
#ifdef HAVE_TERMIOS_H
8787
unsigned int old_in = foreground_in;
8888

8989
foreground_in = tcgetpgrp(STDIN_FILENO) == getpgrp();

0 commit comments

Comments
 (0)