Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat regen
details: https://anonhg.NetBSD.org/src/rev/25d0ec3e0f4f
branches: trunk
changeset: 828346:25d0ec3e0f4f
user: sevan <sevan%NetBSD.org@localhost>
date: Sat Dec 09 04:23:22 2017 +0000
description:
regen
diffstat:
tools/compat/configure | 15 +++++++++++++++
tools/compat/nbtool_config.h.in | 6 +++++-
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (54 lines):
diff -r 150de929f668 -r 25d0ec3e0f4f tools/compat/configure
--- a/tools/compat/configure Sat Dec 09 04:22:53 2017 +0000
+++ b/tools/compat/configure Sat Dec 09 04:23:22 2017 +0000
@@ -4520,6 +4520,19 @@
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ASPRINTF $ac_have_decl
_ACEOF
+ac_fn_c_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" "
+#include <stdio.h>
+
+"
+if test "x$ac_cv_have_decl_asnprintf" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_ASNPRINTF $ac_have_decl
+_ACEOF
ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "
#include <stdio.h>
@@ -4999,6 +5012,8 @@
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
+# include <stdlib.h>
# else
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
diff -r 150de929f668 -r 25d0ec3e0f4f tools/compat/nbtool_config.h.in
--- a/tools/compat/nbtool_config.h.in Sat Dec 09 04:22:53 2017 +0000
+++ b/tools/compat/nbtool_config.h.in Sat Dec 09 04:23:22 2017 +0000
@@ -1,6 +1,6 @@
/* nbtool_config.h.in. Generated from configure.ac by autoheader. */
-/* $NetBSD: nbtool_config.h.in,v 1.41 2017/10/02 22:21:31 christos Exp $ */
+/* $NetBSD: nbtool_config.h.in,v 1.42 2017/12/09 04:23:22 sevan Exp $ */
#ifndef __NETBSD_NBTOOL_CONFIG_H__
#define __NETBSD_NBTOOL_CONFIG_H__
@@ -47,6 +47,10 @@
/* Define to 1 if you have the <ctype.h> header file. */
#undef HAVE_CTYPE_H
+/* Define to 1 if you have the declaration of `asnprintf', and to 0 if you
+ don't. */
+#undef HAVE_DECL_ASNPRINTF
+
/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
don't. */
#undef HAVE_DECL_ASPRINTF
Home |
Main Index |
Thread Index |
Old Index