[PATCH] Define DEV_BSIZE only if not already defined
Aurelien Jarno
aurelien@aurel32.net
Tue May 7 21:40:00 GMT 2013
On GNU/kFreeBSD DEV_BSIZE is already defined by the kernel headers.
In that case don't redefine DEV_BSIZE, the same way it's done a few line
above for NOGROUP and NODEV.
ChangeLog:
2013-05-07 Aurelien Jarno <aurelien@aurel32.net>
* misc/sys/param.h(DEV_BSIZE): Define only if not already defined.
---
misc/sys/param.h | 2 ++
1 files changed, 2 insertions(+)
diff --git a/misc/sys/param.h b/misc/sys/param.h
index 5e6353d..6a0b5d3 100644
--- a/misc/sys/param.h
+++ b/misc/sys/param.h
@@ -71,7 +71,9 @@
/* Unit of `st_blocks'. */
+#ifndef DEV_BSIZE
#define DEV_BSIZE 512
+#endif
/* Bit map related macros. */
--
1.7.10.4
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
More information about the Libc-alpha
mailing list