vishalmishra434 / rpms / openssh

Forked from rpms/openssh 3 months ago
Clone
d5591f
commit 40b0a5eb6e3edfa2886b60c09c7803353b0cc7f5
d5591f
Author: Sam James <sam@gentoo.org>
d5591f
Date:   Sun Nov 6 04:47:35 2022 +0000
d5591f
d5591f
    configure.ac: Add <pty.h> include for openpty
d5591f
    
d5591f
    Another Clang 16ish fix (which makes -Wimplicit-function-declaration
d5591f
    an error by default).  github PR#355.
d5591f
    
d5591f
    See: 2efd71da49b9cfeab7987058cf5919e473ff466b
d5591f
    See: be197635329feb839865fdc738e34e24afd1fca8
d5591f
d5591f
diff --git a/configure.ac b/configure.ac
d5591f
index 1e77ecfc..1866aea5 100644
d5591f
--- a/configure.ac
d5591f
+++ b/configure.ac
d5591f
@@ -2373,6 +2373,9 @@ if test ! -z "$check_for_openpty_ctty_bug"; then
d5591f
 #include <stdio.h>
d5591f
 #include <stdlib.h>
d5591f
 #include <unistd.h>
d5591f
+#ifdef HAVE_PTY_H
d5591f
+# include <pty.h>
d5591f
+#endif
d5591f
 #include <sys/fcntl.h>
d5591f
 #include <sys/types.h>
d5591f
 #include <sys/wait.h>