Sat Apr 18 12:54:38 2020 UTC ()
add NO_IOBUF_ALIGNED to not pull aligned_alloc() for really constrained
boot media


(jdolecek)
diff -r1.54 -r1.55 src/sbin/fsck_ffs/fsck.h
diff -r1.18 -r1.19 src/sbin/newfs/extern.h

cvs diff -r1.54 -r1.55 src/sbin/fsck_ffs/fsck.h (expand / switch to context diff)
--- src/sbin/fsck_ffs/fsck.h 2020/04/05 15:25:40 1.54
+++ src/sbin/fsck_ffs/fsck.h 2020/04/18 12:54:38 1.55
@@ -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

cvs diff -r1.18 -r1.19 src/sbin/newfs/extern.h (expand / switch to context diff)
--- src/sbin/newfs/extern.h 2017/02/08 18:05:25 1.18
+++ src/sbin/newfs/extern.h 2020/04/18 12:54:38 1.19
@@ -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
+