configure.ac: Add <pty.h> include for openpty

Another Clang 16ish fix (which makes -Wimplicit-function-declaration
an error by default).  github PR#355.

See: 2efd71da49
See: be19763532
This commit is contained in:
Sam James 2022-11-06 04:47:35 +00:00 committed by Darren Tucker
parent 6b17e12887
commit 40b0a5eb6e
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -2373,6 +2373,9 @@ if test ! -z "$check_for_openpty_ctty_bug"; then
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_PTY_H
# include <pty.h>
#endif
#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>