This commit is contained in:
sevan 2017-12-09 04:23:22 +00:00
parent bf692293ff
commit d866c85be9
2 changed files with 20 additions and 1 deletions

View File

@ -4520,6 +4520,19 @@ fi
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 @@ else
# 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>

View File

@ -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