Source-Changes-HG archive

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

[src/trunk]: src/tools/compat Always redefine DEV_BSIZE=512.



details:   https://anonhg.NetBSD.org/src/rev/0027c252fe7b
branches:  trunk
changeset: 772927:0027c252fe7b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 21 20:05:27 2012 +0000

description:
Always redefine DEV_BSIZE=512.
All references of DEV_BSIZE in tools are to manipulate target
(i.e. NetBSD's) file images (in installboot(8) and makefs(8) etc.) and
no host's DEV_BSIZE is required for the moment.  Closes PR toolchain/42574.

diffstat:

 tools/compat/compat_defs.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r ce0f35e0e5ef -r 0027c252fe7b tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Sat Jan 21 19:56:46 2012 +0000
+++ b/tools/compat/compat_defs.h        Sat Jan 21 20:05:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.82 2011/11/03 14:13:53 joerg Exp $   */
+/*     $NetBSD: compat_defs.h,v 1.83 2012/01/21 20:05:27 tsutsui Exp $ */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -1052,9 +1052,9 @@
 #define BYTE_ORDER LITTLE_ENDIAN
 #endif
 
-#ifndef DEV_BSIZE
+/* all references of DEV_BSIZE in tools are for NetBSD's file images */
+#undef DEV_BSIZE
 #define DEV_BSIZE (1 << 9)
-#endif
 
 #undef MIN
 #undef MAX



Home | Main Index | Thread Index | Old Index