summaryrefslogtreecommitdiff
path: root/pkgtools/posix_headers
diff options
context:
space:
mode:
authortnn <tnn>2007-08-05 11:20:47 +0000
committertnn <tnn>2007-08-05 11:20:47 +0000
commit863db407becbb40896e648ba197cca276a76ac20 (patch)
treed5365220c3f1ed7c82d9c8f45a0bd1ff1a1d0c52 /pkgtools/posix_headers
parentb4dd589b5b67aed5a95ec7a6c9d0c141148341cd (diff)
downloadpkgsrc-863db407becbb40896e648ba197cca276a76ac20.tar.gz
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 (limited to 'pkgtools/posix_headers')
-rw-r--r--pkgtools/posix_headers/files/stdlib.h.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/posix_headers/files/stdlib.h.in b/pkgtools/posix_headers/files/stdlib.h.in
index 61c32ef8f71..472b15d705b 100644
--- a/pkgtools/posix_headers/files/stdlib.h.in
+++ b/pkgtools/posix_headers/files/stdlib.h.in
@@ -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