This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Define DEV_BSIZE only if not already defined
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 7 May 2013 23:39:55 +0200
- Subject: [PATCH] Define DEV_BSIZE only if not already defined
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