summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-05 15:43:53 +0000
committerKarl Berry <karl@freefriends.org>2022-11-05 15:43:53 +0000
commitf88210c2bb254c3dd8943d8d08b57085b3da8896 (patch)
tree48d5885c67866e929512e2c0f7fde9d0ff63ed36 /Build/source
parente37e57a3a70bde291c2443fa95fe84e3b3aeb98d (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')
-rw-r--r--Build/source/texk/dvisvgm/ChangeLog6
-rwxr-xr-xBuild/source/texk/dvisvgm/configure1
-rw-r--r--Build/source/texk/dvisvgm/configure.ac1
-rw-r--r--Build/source/texk/kpathsea/ChangeLog6
-rwxr-xr-xBuild/source/texk/kpathsea/configure3
-rw-r--r--Build/source/texk/kpathsea/configure.ac3
6 files changed, 18 insertions, 2 deletions
diff --git a/Build/source/texk/dvisvgm/ChangeLog b/Build/source/texk/dvisvgm/ChangeLog
index a7bd6c8e70b..85b1e9ec7d2 100644
--- a/Build/source/texk/dvisvgm/ChangeLog
+++ b/Build/source/texk/dvisvgm/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-08-29 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* dvisvgm-src/*, version.ac: 2.14; update sources and patches.
diff --git a/Build/source/texk/dvisvgm/configure b/Build/source/texk/dvisvgm/configure
index edd33d6941a..b323b36ded0 100755
--- a/Build/source/texk/dvisvgm/configure
+++ b/Build/source/texk/dvisvgm/configure
@@ -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;
diff --git a/Build/source/texk/dvisvgm/configure.ac b/Build/source/texk/dvisvgm/configure.ac
index 5dfc7656d6c..0ed1a79916a 100644
--- a/Build/source/texk/dvisvgm/configure.ac
+++ b/Build/source/texk/dvisvgm/configure.ac
@@ -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;
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];]],