commit f70f52873058b5a69b466106e0cc88850da45ea0
parent 2334dedba6c08014b8c068757d2532d68899d4f1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 5 May 2024 10:34:23 +0200
build: check for the correct function in an #ifdef
Problem existed since version 7.0, commit 19c8cea8,
that replaced calls of wait() with calls of waitpid().
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/files.c b/src/files.c
@@ -1015,7 +1015,7 @@ void send_data(const linestruct *line, int fd)
/* Execute the given command in a shell. */
void execute_command(const char *command)
{
-#if defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAIT)
+#if defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID)
int from_fd[2], to_fd[2];
/* The pipes through which text will be written and read. */
struct sigaction oldaction, newaction = {{0}};