lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 31 lines 1.3 kB view raw
1https://github.com/scheme/scsh/pull/51.patch 2 3From b2934abb68d6adab448f24787192c047e46cf17c Mon Sep 17 00:00:00 2001 4From: Sergei Trofimovich <slyich@gmail.com> 5Date: Mon, 28 Apr 2025 22:39:55 +0100 6Subject: [PATCH] configure.ac: add detection of `pty.h` 7 8Without the change the build on modern autoconf fails as: 9 10 c/tty.c: In function 'allocate_master': 11 c/tty.c:398:14: error: implicit declaration of function 'openpty'; did you mean 'openat'? [-Wimplicit-function-declaration] 12 398 | rc = openpty (&master_fd, &slave_fd, NULL, NULL, NULL); 13 | ^~~~~~~ 14 | openat 15--- 16 configure.ac | 2 +- 17 1 file changed, 1 insertion(+), 1 deletion(-) 18 19diff --git a/configure.ac b/configure.ac 20index 99779dc..1cd8b22 100644 21--- a/configure.ac 22+++ b/configure.ac 23@@ -32,7 +32,7 @@ CPPFLAGS="$CPPFLAGS -I$S48DIR/include" 24 # Checks for libraries. 25 26 # Checks for header files. 27-AC_CHECK_HEADERS([fcntl.h limits.h netdb.h sgtty.h stdlib.h string.h sys/ioctl.h sys/param.h sys/time.h termios.h unistd.h utime.h]) 28+AC_CHECK_HEADERS([fcntl.h limits.h netdb.h pty.h sgtty.h stdlib.h string.h sys/ioctl.h sys/param.h sys/time.h termios.h unistd.h utime.h]) 29 30 dnl We need the scheme48.h headers, so bomb out if we can't find them. 31 AC_CHECK_HEADERS([scheme48.h], [],