texlive[55760] Build/source/texk/kpathsea: more #include for snprintf
commits+karl at tug.org
commits+karl at tug.org
Sun Jul 5 23:13:46 CEST 2020
Revision: 55760
http://tug.org/svn/texlive?view=revision&revision=55760
Author: karl
Date: 2020-07-05 23:13:46 +0200 (Sun, 05 Jul 2020)
Log Message:
-----------
more #include for snprintf test programs
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/configure
trunk/Build/source/texk/kpathsea/configure.ac
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2020-07-05 20:54:40 UTC (rev 55759)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2020-07-05 21:13:46 UTC (rev 55760)
@@ -1,3 +1,8 @@
+2020-07-05 Karl Berry <karl at freefriends.org>
+
+ * configure.ac (snprintf): two more test programs
+ also need <stdarg.h> and <stdio.h>.
+
2020-07-04 Karl Berry <karl at freefriends.org>
* configure.ac (snprintf): #include <stdio.h> to placate
Modified: trunk/Build/source/texk/kpathsea/configure
===================================================================
--- trunk/Build/source/texk/kpathsea/configure 2020-07-05 20:54:40 UTC (rev 55759)
+++ trunk/Build/source/texk/kpathsea/configure 2020-07-05 21:13:46 UTC (rev 55760)
@@ -14075,7 +14075,9 @@
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-char buf[4] = "abc";
+#include <stdarg.h>
+ #include <stdio.h>
+ char buf[4] = "abc";
int
main ()
{
@@ -14104,7 +14106,9 @@
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-char buf[4] = "abc";
+#include <stdarg.h>
+ #include <stdio.h>
+ char buf[4] = "abc";
int
main ()
{
Modified: trunk/Build/source/texk/kpathsea/configure.ac
===================================================================
--- trunk/Build/source/texk/kpathsea/configure.ac 2020-07-05 20:54:40 UTC (rev 55759)
+++ trunk/Build/source/texk/kpathsea/configure.ac 2020-07-05 21:13:46 UTC (rev 55760)
@@ -90,7 +90,9 @@
if test "x$kpse_cv_have_snfuncs" != xyes; then
AC_MSG_ERROR([Sorry, you need $snfunc and $vsnfunc.])
fi
-AC_RUN_IFELSE([AC_LANG_PROGRAM([[char buf[4] = "abc";]],
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+ #include <stdio.h>
+ char buf[4] = "abc";]],
[[if ($snfunc (buf, 1, "%s", "x") == 0 || buf[1] != 'b')
return 1;]])],
[],
@@ -98,7 +100,9 @@
[:])
AC_CACHE_CHECK([if we need (v)snprintf wrapper functions],
[kpse_cv_wrap_snprintf],
- [AC_RUN_IFELSE([AC_LANG_PROGRAM([[char buf[4] = "abc";]],
+ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+ #include <stdio.h>
+ char buf[4] = "abc";]],
[[$snfunc (buf, 3, "xyz");
if (buf[2] != 0) return 1;
$snfunc (buf, 2, "xyz");
More information about the tex-live-commits
mailing list.