Skip to content

Commit

Permalink
stdlib.h to placate clang16
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@64941 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
kberry committed Nov 5, 2022
1 parent 22eba5c commit 3b1470c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions texk/dvisvgm/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2022-11-05 Sam James <sam@gentoo.org>

* configure.ac (Ghostscript version): #include <stdlib.h>
to declare exit and placate clang16.
https://tug.org/pipermail/tlbuild/2022q4/005269.html

2022-08-29 Hironobu Yamashita <h.y.acetaminophen@gmail.com>

* dvisvgm-src/*, version.ac: 2.14; update sources and patches.
Expand Down
1 change: 1 addition & 0 deletions texk/dvisvgm/configure
Original file line number Diff line number Diff line change
Expand Up @@ -23415,6 +23415,7 @@ else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
#include <stdlib.h>
#include <ghostscript/iapi.h>
int main () {
gsapi_revision_t r;
Expand Down
1 change: 1 addition & 0 deletions texk/dvisvgm/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ else
# query Ghostscript version
AC_MSG_CHECKING([Ghostscript version])
AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
#include <stdlib.h>
#include <ghostscript/iapi.h>
int main () {
gsapi_revision_t r;
Expand Down
6 changes: 6 additions & 0 deletions texk/kpathsea/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2022-11-05 Sam James <sam@gentoo.org>

* configure.ac (Ghostscript version): #include <stdlib.h>
to declare exit and placate clang16.
https://tug.org/pipermail/tlbuild/2022q4/005269.html

2022-06-12 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* texmf.cnf (guess_input_kanji_encoding):
Expand Down
3 changes: 2 additions & 1 deletion texk/kpathsea/configure
Original file line number Diff line number Diff line change
Expand Up @@ -14633,7 +14633,8 @@ then :
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int fork() { exit(1); }
#include <stdlib.h>
int fork() { exit(1); }
int vfork() { exit(1); }
extern char *getcwd();
char path[100];
Expand Down
3 changes: 2 additions & 1 deletion texk/kpathsea/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ if test "x$ac_cv_func_getcwd" = xyes; then
# We only need to run this if we have getcwd.
AC_CACHE_CHECK([whether getcwd uses fork or vfork],
[kb_cv_func_getcwd_forks],
[AC_RUN_IFELSE([AC_LANG_PROGRAM([[int fork() { exit(1); }
[AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
int fork() { exit(1); }
int vfork() { exit(1); }
extern char *getcwd();
char path[100];]],
Expand Down

0 comments on commit 3b1470c

Please sign in to comment.