[Bug 1347] New: LLONG_MAX v LONGLONG_MAX

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Jul 30 14:38:35 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1347

           Summary: LLONG_MAX v LONGLONG_MAX
           Product: Portable OpenSSH
           Version: 4.6p1
          Platform: PPC
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Miscellaneous
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: David.Leonard at quest.com


On AIX, LLONG_MAX is known as LONGLONG_MAX


/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:
In function `test':
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:32:
warning: implicit declaration
 of function `strtonum'
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:
In function `main':
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:49:
`LLONG_MAX' undeclared (first
 use in this function)
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:49:
(Each undeclared identifier i
s reported only once
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:49:
for each function it appears 
in.)
/data/rc/u/davidl/openssh/openssh/openbsd-compat/regress/strtonumtest.c:53:
`LLONG_MIN' undeclared (first
 use in this function)
gmake[3]: Leaving directory
`/var/tmp/build.openssh.build/build/openssh-4.6p1/open

/usr/include/sys/limits.h:#define LONGLONG_MAX  (0x7fffffffffffffffLL)
/usr/include/sys/limits.h:#define LONGLONG_MIN  (-LONGLONG_MAX - 1)

I notice that there is a test for HAVE_LLONG_MAX in configure.in ...
maybe that could be used instead of what i did in the attached patch??


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list