diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-03-09 07:10:09 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-03-09 07:10:09 +0100 |
commit | 7643e3397d27bb4c18940d1af65c247c48c4bae1 (patch) | |
tree | fe55cbb3df102e52d7ce86cc16c6c72aa3ca373e /openbsd-compat/regress | |
parent | - (dtucker) [openbsd-compat/port-aix.{c,h}] Remove AIX specific initgroups (diff) | |
download | openssh-7643e3397d27bb4c18940d1af65c247c48c4bae1.tar.xz openssh-7643e3397d27bb4c18940d1af65c247c48c4bae1.zip |
- (dtucker) [openbsd-compat/regress/strtonumtest.c] Bug #1347: Use platform's
equivalent of LLONG_MAX for the compat regression tests, which makes them
run on AIX and HP-UX. Patch from David Leonard.
Diffstat (limited to 'openbsd-compat/regress')
-rw-r--r-- | openbsd-compat/regress/strtonumtest.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsd-compat/regress/strtonumtest.c b/openbsd-compat/regress/strtonumtest.c index cb8585129..50ca5bd22 100644 --- a/openbsd-compat/regress/strtonumtest.c +++ b/openbsd-compat/regress/strtonumtest.c @@ -21,6 +21,20 @@ #include <stdio.h> #include <stdlib.h> +/* LLONG_MAX is known as LONGLONG_MAX on AIX */ +#if defined(LONGLONG_MAX) && !defined(LLONG_MAX) +# define LLONG_MAX LONGLONG_MAX +# define LLONG_MIN LONGLONG_MIN +#endif + +/* LLONG_MAX is known as LONG_LONG_MAX on HP-UX */ +#if defined(LONG_LONG_MAX) && !defined(LLONG_MAX) +# define LLONG_MAX LONG_LONG_MAX +# define LLONG_MIN LONG_LONG_MIN +#endif + +long long strtonum(const char *, long long, long long, const char **); + int fail; void |