From f3e4ed6d0aee2385f292b0203ff4037de0e2b58c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Feb 2023 22:57:47 +0000 Subject: avoid implicit wait and exit declarations for C99 git-svn-id: svn://tug.org/texlive/trunk@65717 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/xdvik/ChangeLog | 6 ++++++ Build/source/texk/xdvik/configure | 5 ++++- Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Build/source/texk/xdvik/ChangeLog b/Build/source/texk/xdvik/ChangeLog index 6e0f29740a7..178ee39a084 100644 --- a/Build/source/texk/xdvik/ChangeLog +++ b/Build/source/texk/xdvik/ChangeLog @@ -1,3 +1,9 @@ +2023-02-02 Florian Weimer + + * m4/xdvi-func-setsid-in-fork.m4.c99-4: avoid implicit + declarations of wait and exit, to appease C99. + https://tug.org/pipermail/tex-live/2023-January/048833.html + 2022-02-13 Paul Vojta * dvi-init.c (make_backup_fp): call new try_dup, and existing diff --git a/Build/source/texk/xdvik/configure b/Build/source/texk/xdvik/configure index 53810a3b391..9e4a483f8fd 100755 --- a/Build/source/texk/xdvik/configure +++ b/Build/source/texk/xdvik/configure @@ -16406,6 +16406,9 @@ else $as_nop #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_WAIT_H +#include +#endif #ifdef HAVE_VFORK_H #include #endif @@ -16427,7 +16430,7 @@ main (void) while (wait(&status) != child) ; - exit( + _exit( /* Was there some problem with vforking? */ child < 0 diff --git a/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 b/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 index 8fa2fcb9dc2..2cd6a5befa7 100644 --- a/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 +++ b/Build/source/texk/xdvik/m4/xdvi-func-setsid-in-fork.m4 @@ -22,6 +22,9 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_WAIT_H +#include +#endif #ifdef HAVE_VFORK_H #include #endif]], @@ -40,7 +43,7 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], while (wait(&status) != child) ; - exit( + _exit( /* Was there some problem with vforking? */ child < 0 -- cgit v1.2.3