Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat Provide strtoll() in libnbcompat.
details: https://anonhg.NetBSD.org/src/rev/7b56d05d7728
branches: trunk
changeset: 537832:7b56d05d7728
user: lukem <lukem%NetBSD.org@localhost>
date: Sun Oct 06 12:09:34 2002 +0000
description:
Provide strtoll() in libnbcompat.
Should fix relevant build issue on HP-UX and MacOS X hosts.
diffstat:
tools/compat/Makefile | 4 ++--
tools/compat/compat_defs.h | 7 ++++++-
tools/compat/config.h.in | 3 ++-
tools/compat/configure | 2 +-
tools/compat/configure.ac | 4 ++--
5 files changed, 13 insertions(+), 7 deletions(-)
diffs (93 lines):
diff -r a4d3c057d6e8 -r 7b56d05d7728 tools/compat/Makefile
--- a/tools/compat/Makefile Sun Oct 06 12:07:28 2002 +0000
+++ b/tools/compat/Makefile Sun Oct 06 12:09:34 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2002/09/14 04:30:27 thorpej Exp $
+# $NetBSD: Makefile,v 1.16 2002/10/06 12:09:34 lukem Exp $
HOSTLIB= nbcompat
@@ -8,7 +8,7 @@
mkstemp.c pread.c pwcache.c pwrite.c pw_scan.c rmd160.c \
rmd160hl.c setenv.c setgroupent.c setpassent.c setprogname.c \
sha1.c sha1hl.c snprintf.c strlcat.c strlcpy.c strmode.c \
- strsep.c unvis.c vis.c \
+ strsep.c strtoll.c unvis.c vis.c \
_err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \
_warn.c _warnx.c __fts13.c __glob13.c
diff -r a4d3c057d6e8 -r 7b56d05d7728 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h Sun Oct 06 12:07:28 2002 +0000
+++ b/tools/compat/compat_defs.h Sun Oct 06 12:09:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_defs.h,v 1.19 2002/09/30 00:39:21 lukem Exp $ */
+/* $NetBSD: compat_defs.h,v 1.20 2002/10/06 12:09:34 lukem Exp $ */
#ifndef __NETBSD_COMPAT_DEFS_H__
#define __NETBSD_COMPAT_DEFS_H__
@@ -253,6 +253,10 @@
char *strsep(char **, const char *);
#endif
+#if !HAVE_STRTOLL
+long long strtoll(const char *, char **, int);
+#endif
+
#if !HAVE_USER_FROM_UID
const char *user_from_uid(uid_t, int);
const char *group_from_gid(gid_t, int);
@@ -531,6 +535,7 @@
/* #define, not typedef, as quad_t exists as a struct on some systems */
#define quad_t long long
#define u_quad_t unsigned long long
+#define strtoq strtoll
#define strtouq strtoull
#endif
diff -r a4d3c057d6e8 -r 7b56d05d7728 tools/compat/config.h.in
--- a/tools/compat/config.h.in Sun Oct 06 12:07:28 2002 +0000
+++ b/tools/compat/config.h.in Sun Oct 06 12:09:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h.in,v 1.24 2002/10/06 01:25:58 lukem Exp $ */
+/* $NetBSD: config.h.in,v 1.25 2002/10/06 12:09:34 lukem Exp $ */
#ifndef __NETBSD_COMPAT_CONFIG_H__
#define __NETBSD_COMPAT_CONFIG_H__
@@ -78,6 +78,7 @@
#undef HAVE_STRLCAT
#undef HAVE_STRLCPY
#undef HAVE_STRSEP
+#undef HAVE_STRTOLL
#undef HAVE_USER_FROM_UID
#undef HAVE_VASPRINTF
#undef HAVE_VASNPRINTF
diff -r a4d3c057d6e8 -r 7b56d05d7728 tools/compat/configure
--- a/tools/compat/configure Sun Oct 06 12:07:28 2002 +0000
+++ b/tools/compat/configure Sun Oct 06 12:09:34 2002 +0000
@@ -4585,7 +4585,7 @@
fgetln flock fparseln futimes getopt getopt_long \
isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
poll pread pwcache_userdb pwrite random setenv setgroupent \
- setprogname setpassent snprintf strlcat strlcpy strsep \
+ setprogname setpassent snprintf strlcat strlcpy strsep strtoll \
user_from_uid vasprintf vasnprintf vsnprintf
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
diff -r a4d3c057d6e8 -r 7b56d05d7728 tools/compat/configure.ac
--- a/tools/compat/configure.ac Sun Oct 06 12:07:28 2002 +0000
+++ b/tools/compat/configure.ac Sun Oct 06 12:09:34 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: configure.ac,v 1.26 2002/10/05 04:13:30 lukem Exp $
+# $NetBSD: configure.ac,v 1.27 2002/10/06 12:09:34 lukem Exp $
#
# Autoconf definition file for libnbcompat.
#
@@ -97,7 +97,7 @@
fgetln flock fparseln futimes getopt getopt_long \
isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
poll pread pwcache_userdb pwrite random setenv setgroupent \
- setprogname setpassent snprintf strlcat strlcpy strsep \
+ setprogname setpassent snprintf strlcat strlcpy strsep strtoll \
user_from_uid vasprintf vasnprintf vsnprintf)
AC_CHECK_DECLS([setgroupent, setpassent],,, [
Home |
Main Index |
Thread Index |
Old Index