mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 03:00:21 +02:00
Work around the lack of a vsnprintf(3) declaration on AIX 5.3.
* configure.in: Check for the vsnprintf(3) declaration. * libguile/deprecation.c [!HAVE_DECL_VSNPRINTF]: Provide vsnprintf(3) declaration. This is needed on `powerpc-ibm-aix5.3.0.0'.
This commit is contained in:
parent
7747b2d4f0
commit
de8ab91a76
2 changed files with 7 additions and 3 deletions
|
@ -776,10 +776,12 @@ AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid fesetround ftime
|
||||||
# only with `_XOPEN_SOURCE' or some such.
|
# only with `_XOPEN_SOURCE' or some such.
|
||||||
# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
|
# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
|
||||||
# but only if `_BSD' is defined.
|
# but only if `_BSD' is defined.
|
||||||
|
# vsnprintf - on AIX 5.3, the declaration is only visible with
|
||||||
|
# `_XOPEN_SOURCE >= 500' or `_ISOC99_SOURCE'.
|
||||||
#
|
#
|
||||||
AC_CHECK_HEADERS(crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h)
|
AC_CHECK_HEADERS(crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h)
|
||||||
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
|
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
|
||||||
AC_CHECK_DECLS([sethostname, strncasecmp, unsetenv, hstrerror, cuserid, flock])
|
AC_CHECK_DECLS([sethostname, strncasecmp, unsetenv, hstrerror, cuserid, flock, vsnprintf])
|
||||||
|
|
||||||
# crypt() may or may not be available, for instance in some countries there
|
# crypt() may or may not be available, for instance in some countries there
|
||||||
# are restrictions on cryptography.
|
# are restrictions on cryptography.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
|
/* Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -33,7 +33,9 @@
|
||||||
|
|
||||||
/* Windows defines. */
|
/* Windows defines. */
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define vsnprintf _vsnprintf
|
# define vsnprintf _vsnprintf
|
||||||
|
#elif !HAVE_DECL_VSNPRINTF
|
||||||
|
extern int vsnprintf (char *, size_t, const char *, va_list);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue