Source-Changes-HG archive

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

[src/trunk]: src/sbin add NO_IOBUF_ALIGNED to not pull aligned_alloc() for re...



details:   https://anonhg.NetBSD.org/src/rev/dbc87c39f343
branches:  trunk
changeset: 1009251:dbc87c39f343
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Apr 18 12:54:38 2020 +0000

description:
add NO_IOBUF_ALIGNED to not pull aligned_alloc() for really constrained
boot media

diffstat:

 sbin/fsck_ffs/fsck.h |  6 +++++-
 sbin/newfs/extern.h  |  7 ++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d3fd9f55e538 -r dbc87c39f343 sbin/fsck_ffs/fsck.h
--- a/sbin/fsck_ffs/fsck.h      Sat Apr 18 12:25:01 2020 +0000
+++ b/sbin/fsck_ffs/fsck.h      Sat Apr 18 12:54:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fsck.h,v 1.54 2020/04/05 15:25:40 joerg Exp $  */
+/*     $NetBSD: fsck.h,v 1.55 2020/04/18 12:54:38 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -394,3 +394,7 @@
 #define        iswap32(x) (x)
 #define        iswap64(x) (x)
 #endif /* NO_FFS_EI */
+
+#ifdef NO_IOBUF_ALIGNED
+#define        aligned_alloc(align, size)      malloc((size))
+#endif
diff -r d3fd9f55e538 -r dbc87c39f343 sbin/newfs/extern.h
--- a/sbin/newfs/extern.h       Sat Apr 18 12:25:01 2020 +0000
+++ b/sbin/newfs/extern.h       Sat Apr 18 12:54:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.18 2017/02/08 18:05:25 rin Exp $  */
+/*     $NetBSD: extern.h,v 1.19 2020/04/18 12:54:38 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -72,3 +72,8 @@
 /* Disable Apple UFS support for install media */
 #define                isappleufs              (0)
 #endif
+
+#ifdef NO_IOBUF_ALIGNED
+#define        aligned_alloc(align, size)      malloc((size))
+#endif
+



Home | Main Index | Thread Index | Old Index