1
Fork 0
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:
Ludovic Courtès 2009-07-05 21:13:02 +02:00
parent 7747b2d4f0
commit de8ab91a76
2 changed files with 7 additions and 3 deletions

View file

@ -776,10 +776,12 @@ AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid fesetround ftime
# only with `_XOPEN_SOURCE' or some such.
# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
# 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_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
# are restrictions on cryptography.

View file

@ -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
* modify it under the terms of the GNU Lesser General Public
@ -34,6 +34,8 @@
/* Windows defines. */
#ifdef __MINGW32__
# define vsnprintf _vsnprintf
#elif !HAVE_DECL_VSNPRINTF
extern int vsnprintf (char *, size_t, const char *, va_list);
#endif