diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-05 15:43:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-05 15:43:53 +0000 |
commit | f88210c2bb254c3dd8943d8d08b57085b3da8896 (patch) | |
tree | 48d5885c67866e929512e2c0f7fde9d0ff63ed36 /Build/source/texk/kpathsea | |
parent | e37e57a3a70bde291c2443fa95fe84e3b3aeb98d (diff) |
stdlib.h to placate clang16
git-svn-id: svn://tug.org/texlive/trunk@64941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 6 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/configure | 3 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/configure.ac | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 5c6dccf80fc..81662ff0aa1 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -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): diff --git a/Build/source/texk/kpathsea/configure b/Build/source/texk/kpathsea/configure index b8612af5a71..adf88b5566e 100755 --- a/Build/source/texk/kpathsea/configure +++ b/Build/source/texk/kpathsea/configure @@ -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]; diff --git a/Build/source/texk/kpathsea/configure.ac b/Build/source/texk/kpathsea/configure.ac index 0851e82f011..5dde0e6bdcd 100644 --- a/Build/source/texk/kpathsea/configure.ac +++ b/Build/source/texk/kpathsea/configure.ac @@ -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];]], |