summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-07-04 21:10:17 +0000
committerKarl Berry <karl@freefriends.org>2020-07-04 21:10:17 +0000
commit8cefefdff53f5469ee439c903a85596b35886011 (patch)
treeae9f293b68584a21604a2365735a9015e69545e1 /Build
parent3257456084202a9436531775f9d97dc69db80ca4 (diff)
#include <stdio.h> for [v]snprintf configure check
git-svn-id: svn://tug.org/texlive/trunk@55752 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog6
-rwxr-xr-xBuild/source/texk/kpathsea/configure1
-rw-r--r--Build/source/texk/kpathsea/configure.ac5
3 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 344cc3c8783..e1914c68bf4 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,9 @@
+2020-07-04 Karl Berry <karl@freefriends.org>
+
+ * configure.ac (snprintf): #include <stdio.h> to placate
+ new arm64 Mac compiler, since apparently that's the standard
+ place for the [v]snprintf declaration. We'll see. Report from Dick.
+
2020-06-22 Karl Berry <karl@freefriends.org>
* Makefile.am (EXTRA_DIST): add COPYING.LESSERv2.
diff --git a/Build/source/texk/kpathsea/configure b/Build/source/texk/kpathsea/configure
index 6f0c31e50d1..243fdad6aa7 100755
--- a/Build/source/texk/kpathsea/configure
+++ b/Build/source/texk/kpathsea/configure
@@ -14045,6 +14045,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdarg.h>
+ #include <stdio.h>
char buf[16];
va_list ap;
int
diff --git a/Build/source/texk/kpathsea/configure.ac b/Build/source/texk/kpathsea/configure.ac
index f244058ec37..a543c3c776e 100644
--- a/Build/source/texk/kpathsea/configure.ac
+++ b/Build/source/texk/kpathsea/configure.ac
@@ -1,6 +1,8 @@
+dnl $Id$
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
+dnl Copyright 2015-2020 Karl Berry <tex-live@tug.org>
+dnl Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
dnl
dnl This file is free software; the copyright holder
dnl gives unlimited permission to copy and/or distribute it,
@@ -78,6 +80,7 @@ fi
AC_CACHE_CHECK([for $snfunc and $vsnfunc],
[kpse_cv_have_snfuncs],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+ #include <stdio.h>
char buf[16];
va_list ap;]],
[[$snfunc (buf, 16, "%s", "abc");