diff options
author | Damien Miller <djm@mindrot.org> | 2005-11-24 09:58:19 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-11-24 09:58:19 +0100 |
commit | 57f3915b5513495b11e7052df0260c7896b7b612 (patch) | |
tree | 88e15971a1f626cb8ef3ff18d8e9697fef8c2cef /openbsd-compat/openbsd-compat.h | |
parent | - (dtucker) [loginrec.c] Add casts to prevent compiler warnings, patch (diff) | |
download | openssh-57f3915b5513495b11e7052df0260c7896b7b612.tar.xz openssh-57f3915b5513495b11e7052df0260c7896b7b612.zip |
- (djm) [configure.ac openbsd-compat/Makefile.in openbsd-compat/bsd-asprintf.c
openbsd-compat/bsd-snprintf.c openbsd-compat/openbsd-compat.h] Add an
asprintf() implementation, after syncing our {v,}snprintf() implementation
with some extra fixes from Samba's version. With help and debugging from
dtucker and tim; ok dtucker@
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index dda558ffe..fe0c36dcd 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -1,4 +1,4 @@ -/* $Id: openbsd-compat.h,v 1.31 2005/09/29 23:55:50 dtucker Exp $ */ +/* $Id: openbsd-compat.h,v 1.32 2005/11/24 08:58:21 djm Exp $ */ /* * Copyright (c) 1999-2003 Damien Miller. All rights reserved. @@ -142,6 +142,10 @@ unsigned int arc4random(void); void arc4random_stir(void); #endif /* !HAVE_ARC4RANDOM */ +#ifndef HAVE_ASPRINTF +int asprintf(char **, const char *, ...); +#endif + #ifndef HAVE_OPENPTY int openpty(int *, int *, char *, struct termios *, struct winsize *); #endif /* HAVE_OPENPTY */ @@ -160,6 +164,10 @@ long long strtoll(const char *, char **, int); long long strtonum(const char *, long long, long long, const char **); #endif +#ifndef HAVE_VASPRINTF +int vasprintf(char **, const char *, va_list); +#endif + #ifndef HAVE_VSNPRINTF int vsnprintf(char *, size_t, const char *, va_list); #endif |