[tlbuild] [PATCH] Fix -Wimplicit-function-declaration
Sam James
sam at gentoo.org
Fri Nov 4 05:58:58 CET 2022
Add <stdlib.h> includes for exit(). Clang 16 makes -Wimplicit-function-declaration an error by default.
Signed-off-by: Sam James <sam at gentoo.org>
---
texk/dvisvgm/configure.ac | 1 +
texk/kpathsea/configure.ac | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/texk/dvisvgm/configure.ac b/texk/dvisvgm/configure.ac
index 5dfc7656d..0ed1a7991 100644
--- a/texk/dvisvgm/configure.ac
+++ b/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/texk/kpathsea/configure.ac b/texk/kpathsea/configure.ac
index 0851e82f0..5dde0e6bd 100644
--- a/texk/kpathsea/configure.ac
+++ b/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];]],
--
2.38.1
More information about the tlbuild
mailing list.