Module Name: src Committed By: jdolecek Date: Sat Apr 18 12:54:38 UTC 2020
Modified Files: src/sbin/fsck_ffs: fsck.h src/sbin/newfs: extern.h Log Message: add NO_IOBUF_ALIGNED to not pull aligned_alloc() for really constrained boot media To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sbin/fsck_ffs/fsck.h cvs rdiff -u -r1.18 -r1.19 src/sbin/newfs/extern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/fsck_ffs/fsck.h diff -u src/sbin/fsck_ffs/fsck.h:1.54 src/sbin/fsck_ffs/fsck.h:1.55 --- src/sbin/fsck_ffs/fsck.h:1.54 Sun Apr 5 15:25:40 2020 +++ src/sbin/fsck_ffs/fsck.h Sat Apr 18 12:54:38 2020 @@ -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 @@ iswap64(u_int64_t x) #define iswap32(x) (x) #define iswap64(x) (x) #endif /* NO_FFS_EI */ + +#ifdef NO_IOBUF_ALIGNED +#define aligned_alloc(align, size) malloc((size)) +#endif Index: src/sbin/newfs/extern.h diff -u src/sbin/newfs/extern.h:1.18 src/sbin/newfs/extern.h:1.19 --- src/sbin/newfs/extern.h:1.18 Wed Feb 8 18:05:25 2017 +++ src/sbin/newfs/extern.h Sat Apr 18 12:54:38 2020 @@ -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 @@ extern char *appleufs_volname; /* Apple /* Disable Apple UFS support for install media */ #define isappleufs (0) #endif + +#ifdef NO_IOBUF_ALIGNED +#define aligned_alloc(align, size) malloc((size)) +#endif +