diff options
author | Damien Miller <djm@mindrot.org> | 2005-05-26 12:48:25 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-05-26 12:48:25 +0200 |
commit | de3cb0a3dc1bd98762afa3d71f3ffcdb76029fad (patch) | |
tree | 8c0729f879a4458a36ef691480c553382ac2775a /openbsd-compat/openbsd-compat.h | |
parent | - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1033: Provide (diff) | |
download | openssh-de3cb0a3dc1bd98762afa3d71f3ffcdb76029fad.tar.xz openssh-de3cb0a3dc1bd98762afa3d71f3ffcdb76029fad.zip |
- (djm) [configure.ac openbsd-compat/Makefile.in]
[openbsd-compat/openbsd-compat.h openbsd-compat/strtonum.c]
Add strtonum(3) from OpenBSD libc, new code needs it.
Unfortunately Linux forces us to do a bizarre dance with compiler
options to get LLONG_MIN/MAX; Spotted by and ok dtucker@
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 89d1454e0..a4cfa6c4d 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -1,4 +1,4 @@ -/* $Id: openbsd-compat.h,v 1.26 2004/08/15 08:41:00 djm Exp $ */ +/* $Id: openbsd-compat.h,v 1.27 2005/05/26 10:48:25 djm Exp $ */ /* * Copyright (c) 1999-2003 Damien Miller. All rights reserved. @@ -152,6 +152,10 @@ int openpty(int *, int *, char *, struct termios *, struct winsize *); int snprintf(char *, size_t, const char *, ...); #endif +#ifndef HAVE_STRTONUM +long long strtonum(const char *, long long, long long, const char **); +#endif + #ifndef HAVE_VSNPRINTF int vsnprintf(char *, size_t, const char *, va_list); #endif |