summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--openbsd-compat/regress/strtonumtest.c14
2 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ce8b52e65..5abd1ae22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
5 - (dtucker) [openbsd-compat/port-aix.{c,h}] Remove AIX specific initgroups 5 - (dtucker) [openbsd-compat/port-aix.{c,h}] Remove AIX specific initgroups
6 implementation. It's not needed to fix bug #1081 and breaks the build 6 implementation. It's not needed to fix bug #1081 and breaks the build
7 on some AIX configurations. 7 on some AIX configurations.
8 - (dtucker) [openbsd-compat/regress/strtonumtest.c] Bug #1347: Use platform's
9 equivalent of LLONG_MAX for the compat regression tests, which makes them
10 run on AIX and HP-UX. Patch from David Leonard.
8 11
920080307 1220080307
10 - (djm) OpenBSD CVS Sync 13 - (djm) OpenBSD CVS Sync
@@ -3706,4 +3709,4 @@
3706 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3709 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3707 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3710 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3708 3711
3709$Id: ChangeLog,v 1.4862 2008/03/09 05:36:55 dtucker Exp $ 3712$Id: ChangeLog,v 1.4863 2008/03/09 06:10:09 dtucker Exp $
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 @@
21#include <stdio.h> 21#include <stdio.h>
22#include <stdlib.h> 22#include <stdlib.h>
23 23
24/* LLONG_MAX is known as LONGLONG_MAX on AIX */
25#if defined(LONGLONG_MAX) && !defined(LLONG_MAX)
26# define LLONG_MAX LONGLONG_MAX
27# define LLONG_MIN LONGLONG_MIN
28#endif
29
30/* LLONG_MAX is known as LONG_LONG_MAX on HP-UX */
31#if defined(LONG_LONG_MAX) && !defined(LLONG_MAX)
32# define LLONG_MAX LONG_LONG_MAX
33# define LLONG_MIN LONG_LONG_MIN
34#endif
35
36long long strtonum(const char *, long long, long long, const char **);
37
24int fail; 38int fail;
25 39
26void 40void