Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/tools/compat Pull up revision 1.40 (requested by jmc in...



details:   https://anonhg.NetBSD.org/src/rev/7cc59aaf1cdb
branches:  netbsd-2-0
changeset: 561547:7cc59aaf1cdb
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 07:36:34 2004 +0000

description:
Pull up revision 1.40 (requested by jmc in ticket #527):
On NetBSD boxes make sure and provide prototypes for strtouq since quad_t gets
exposed all the time, but routines which use it do not. Otherwise callers
of strtouq will lose.
XXX: Need to come back through here and clean up the configure tests better
for this

diffstat:

 tools/compat/compat_defs.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r abad9f11a3e2 -r 7cc59aaf1cdb tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Tue Jun 22 07:31:16 2004 +0000
+++ b/tools/compat/compat_defs.h        Tue Jun 22 07:36:34 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.31.2.2 2004/06/22 07:24:33 tron Exp $        */
+/*     $NetBSD: compat_defs.h,v 1.31.2.3 2004/06/22 07:36:34 tron Exp $        */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -745,4 +745,10 @@
 #define strtouq strtoull
 #endif
 
+/* Has quad_t but these prototypes don't get pulled into scope. w/o we lose */
+#ifdef __NetBSD__
+quad_t   strtoq __P((const char *, char **, int)); 
+u_quad_t strtouq __P((const char *, char **, int)); 
+#endif
+
 #endif /* !__NETBSD_COMPAT_DEFS_H__ */



Home | Main Index | Thread Index | Old Index