Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs/ffs Make sure daddr_t is a 64 bit type when ...



details:   https://anonhg.NetBSD.org/src/rev/8394f5c567cb
branches:  trunk
changeset: 363360:8394f5c567cb
user:      hgutch <hgutch%NetBSD.org@localhost>
date:      Sun Mar 06 08:31:54 2022 +0000

description:
Make sure daddr_t is a 64 bit type when building tools.
(see also PR sw-bug/56742 ).

diffstat:

 usr.sbin/makefs/ffs/buf.h          |  3 ++-
 usr.sbin/makefs/ffs/namespace.h    |  5 +++++
 usr.sbin/makefs/ffs/newfs_extern.h |  4 +++-
 3 files changed, 10 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r d1ca84c092e1 -r 8394f5c567cb usr.sbin/makefs/ffs/buf.h
--- a/usr.sbin/makefs/ffs/buf.h Sat Mar 05 16:53:24 2022 +0000
+++ b/usr.sbin/makefs/ffs/buf.h Sun Mar 06 08:31:54 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.13 2018/09/03 16:29:37 riastradh Exp $       */
+/*     $NetBSD: buf.h,v 1.14 2022/03/06 08:31:54 hgutch Exp $  */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -49,6 +49,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <err.h>
+#include "namespace.h"
 
 struct componentname {
        char *cn_nameptr;
diff -r d1ca84c092e1 -r 8394f5c567cb usr.sbin/makefs/ffs/namespace.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.sbin/makefs/ffs/namespace.h   Sun Mar 06 08:31:54 2022 +0000
@@ -0,0 +1,5 @@
+/*     $Id: namespace.h,v 1.1 2022/03/06 08:31:54 hgutch Exp $ */
+
+#ifndef daddr_t
+#define daddr_t int64_t
+#endif
diff -r d1ca84c092e1 -r 8394f5c567cb usr.sbin/makefs/ffs/newfs_extern.h
--- a/usr.sbin/makefs/ffs/newfs_extern.h        Sat Mar 05 16:53:24 2022 +0000
+++ b/usr.sbin/makefs/ffs/newfs_extern.h        Sun Mar 06 08:31:54 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs_extern.h,v 1.4 2015/12/21 00:58:08 christos Exp $        */
+/*     $NetBSD: newfs_extern.h,v 1.5 2022/03/06 08:31:54 hgutch Exp $  */
 /* From: NetBSD: extern.h,v 1.3 2000/12/01 12:03:27 simonb Exp $ */
 
 /*
@@ -25,6 +25,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "namespace.h"
+
 /* prototypes */
 struct fs      *ffs_mkfs(const char *, const fsinfo_t *, time_t);
 void           ffs_write_superblock(struct fs *, const fsinfo_t *);



Home | Main Index | Thread Index | Old Index