pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/posix_headers/files Tru64 doesn't have strtol...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01872c9cdc55
branches:  trunk
changeset: 531719:01872c9cdc55
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 05 11:20:47 2007 +0000

description:
Tru64 doesn't have strtoll, but alpha is a pure LP64 platform so we can
just define it to strtol and most consumers of strtoll should be happy.

diffstat:

 pkgtools/posix_headers/files/stdlib.h.in |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 20c497384ccb -r 01872c9cdc55 pkgtools/posix_headers/files/stdlib.h.in
--- a/pkgtools/posix_headers/files/stdlib.h.in  Sun Aug 05 11:10:11 2007 +0000
+++ b/pkgtools/posix_headers/files/stdlib.h.in  Sun Aug 05 11:20:47 2007 +0000
@@ -1,5 +1,9 @@
-#if !defined(@strtoll@) || defined(__hpux)
+#if !defined(@strtoll@) && defined(__hpux)
 @include <inttypes.h>
 @define strtoll __strtoll
 @define strtoull __strtoull
 #endif
+#if !defined(@strtoll@) && defined(__digital__)
+@define strtoll strtol
+@define strtoull strtoul
+#endif



Home | Main Index | Thread Index | Old Index