summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant>2003-12-19 22:45:14 +0000
committergrant <grant>2003-12-19 22:45:14 +0000
commita380131b1785c198c12a0a9d4712f99c6167f181 (patch)
tree53622750d261ae3854073d90e2bca8e342770902 /pkgtools
parent045e7910964fbf67da1bad01c0df1996b7fcd495 (diff)
downloadpkgsrc-a380131b1785c198c12a0a9d4712f99c6167f181.tar.gz
* Rename HAVE_QUAD_SUPPORT to the more mnemonic HAVE_WORKING_LONG_LONG.
* Don't bother providing compat defs for QUAD_{MIN,MAX} since they're not used anymore.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/files/configure.ac6
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h24
2 files changed, 19 insertions, 11 deletions
diff --git a/pkgtools/libnbcompat/files/configure.ac b/pkgtools/libnbcompat/files/configure.ac
index b07fd6d0930..dce11b193eb 100644
--- a/pkgtools/libnbcompat/files/configure.ac
+++ b/pkgtools/libnbcompat/files/configure.ac
@@ -1,4 +1,4 @@
-dnl $NetBSD: configure.ac,v 1.33 2003/12/10 07:21:20 grant Exp $
+dnl $NetBSD: configure.ac,v 1.34 2003/12/19 22:45:14 grant Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
@@ -261,8 +261,8 @@ dnl support because we don't know how to display it.
fi
if test $can_printf_longlong = yes; then
- AC_DEFINE(HAVE_QUAD_SUPPORT, 1)
- AH_TEMPLATE([HAVE_QUAD_SUPPORT], [
+ AC_DEFINE(HAVE_WORKING_LONG_LONG, 1)
+ AH_TEMPLATE([HAVE_WORKING_LONG_LONG], [
Define to 1 if `long long' is supported and
sizeof(off_t) >= 8.
])
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h
index 69b855f1004..3f4ea1e26d3 100644
--- a/pkgtools/libnbcompat/files/nbcompat.h
+++ b/pkgtools/libnbcompat/files/nbcompat.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nbcompat.h,v 1.29 2003/12/10 07:21:20 grant Exp $ */
+/* $NetBSD: nbcompat.h,v 1.30 2003/12/19 22:45:14 grant Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -469,19 +469,27 @@ void strmode(mode_t, char *);
char *strptime(const char *, const char *, struct tm *);
#endif
-#if HAVE_QUAD_SUPPORT
+#if HAVE_WORKING_LONG_LONG
# if !defined(HAVE_STRTOLL) && defined(HAVE_LONG_LONG)
long long strtoll(const char *, char **, int);
-# if ! defined(QUAD_MIN)
-# define QUAD_MIN (-0x7fffffffffffffffL-1)
+# endif
+# if ! defined(LLONG_MAX)
+# if defined(LONG_LONG_MAX)
+# define LLONG_MAX LONG_LONG_MAX
+# else
+# define LLONG_MAX (0x7fffffffffffffffL)
# endif
-# if ! defined(QUAD_MAX)
-# define QUAD_MAX (0x7fffffffffffffffL)
+# endif
+# if ! defined(LLONG_MIN)
+# if defined(LONG_LONG_MIN)
+# define LLONG_MIN LONG_LONG_MIN
+# else
+# define LLONG_MIN (-0x7fffffffffffffffL-1)
# endif
# endif
-#else /* ! HAVE_QUAD_SUPPORT */
+#else /* ! HAVE_WORKING_LONG_LONG */
# define NO_LONG_LONG 1
-#endif /* ! HAVE_QUAD_SUPPORT */
+#endif /* ! HAVE_WORKING_LONG_LONG */
#if ! defined(LLONG_MAX)
# define LLONG_MAX 0x7fffffffffffffffLL /* max long long */