Skip to content

Commit

Permalink
avoid implicit wait and exit declarations for C99
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@65717 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
kberry committed Feb 2, 2023
1 parent 7e640b5 commit bb307f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions texk/xdvik/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2023-02-02 Florian Weimer <fweimer@redhat.com>

* 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 <vojta@math.berkeley.edu>

* dvi-init.c (make_backup_fp): call new try_dup, and existing
Expand Down
5 changes: 4 additions & 1 deletion texk/xdvik/configure
Original file line number Diff line number Diff line change
Expand Up @@ -16406,6 +16406,9 @@ else $as_nop
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_VFORK_H
#include <vfork.h>
#endif
Expand All @@ -16427,7 +16430,7 @@ main (void)

while (wait(&status) != child)
;
exit(
_exit(
/* Was there some problem with vforking? */
child < 0

Expand Down
5 changes: 4 additions & 1 deletion texk/xdvik/m4/xdvi-func-setsid-in-fork.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK],
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_VFORK_H
#include <vfork.h>
#endif]],
Expand All @@ -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
Expand Down

0 comments on commit bb307f8

Please sign in to comment.