]> andersk Git - openssh.git/commitdiff
- (dtucker) [openbsd-compat/regress/strtonumtest.c] Bug #1347: Use platform's
authordtucker <dtucker>
Sun, 9 Mar 2008 06:10:09 +0000 (06:10 +0000)
committerdtucker <dtucker>
Sun, 9 Mar 2008 06:10:09 +0000 (06:10 +0000)
   equivalent of LLONG_MAX for the compat regression tests, which makes them
   run on AIX and HP-UX.  Patch from David Leonard.

ChangeLog
openbsd-compat/regress/strtonumtest.c

index 3c44a2aabc1c42864ededa936553683667245c1d..01ed00afa3aa95fa87ff1d00f0143c3c5f8a85d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
  - (dtucker) [openbsd-compat/port-aix.{c,h}] Remove AIX specific initgroups
    implementation.  It's not needed to fix bug #1081 and breaks the build
    on some AIX configurations.
+ - (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.
 
 20080307
  - (djm) OpenBSD CVS Sync
index cb85851291a0abaed3a911e0151df9d8f4680c58..50ca5bd22d4e1f31c128171af9af1928bfdb073f 100644 (file)
 #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
This page took 0.500422 seconds and 5 git commands to generate.