summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-09-14 05:35:57 +0000
committergrant <grant@pkgsrc.org>2003-09-14 05:35:57 +0000
commit0348cb514afd8968c3be388bb40375960caaa70e (patch)
treed8d5bca3ec18fcf51234b3d1d2a7a27783327157
parent20505099a2be69c67feb690afe8b9220a4e21079 (diff)
downloadpkgsrc-0348cb514afd8968c3be388bb40375960caaa70e.tar.gz
define the maximum values for `long long' (LLONG_MAX) and
`unsigned long long' (ULLONG_MAX) if we don't have them. as seen on (a) Linux.
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h
index 460b548dbd8..383fa17f3c3 100644
--- a/pkgtools/libnbcompat/files/nbcompat.h
+++ b/pkgtools/libnbcompat/files/nbcompat.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nbcompat.h,v 1.20 2003/09/11 11:27:38 grant Exp $ */
+/* $NetBSD: nbcompat.h,v 1.21 2003/09/14 05:35:57 grant Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -471,6 +471,14 @@ long long strtoll(const char *, char **, int);
# define NO_LONG_LONG 1
#endif /* ! HAVE_QUAD_SUPPORT */
+#if !LLONG_MAX
+# define LLONG_MAX 0x7fffffffffffffffLL /* max long long */
+#endif
+
+#if !ULLONG_MAX
+# define ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
+#endif
+
#if !HAVE_TIMEGM
time_t timegm(struct tm *);
#endif