summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files/nbcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/libnbcompat/files/nbcompat.h')
-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