Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/38db8da523d0
branches:  netbsd-1-6
changeset: 531413:38db8da523d0
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 22 08:36:08 2004 +0000

description:
Pull up revision 1.40 (requested by jmc in ticket #1717):
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 da080832b2b7 -r 38db8da523d0 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Mon Jun 21 10:31:57 2004 +0000
+++ b/tools/compat/compat_defs.h        Tue Jun 22 08:36:08 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.15.2.4 2004/06/16 01:25:51 jmc Exp $ */
+/*     $NetBSD: compat_defs.h,v 1.15.2.5 2004/06/22 08:36:08 tron Exp $        */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -549,4 +549,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