projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7198764
)
kernel/ufs: Use __offsetof() instead of offsetof() (unbreaks buildworld).
author
Sascha Wildner <saw@online.de>
Mon, 4 Mar 2013 00:51:24 +0000 (
01:51
+0100)
committer
Sascha Wildner <saw@online.de>
Mon, 4 Mar 2013 00:51:24 +0000 (
01:51
+0100)
__offsetof() is known to userland too, and <vfs/ufs/dir.h> is shared with
some userland programs.
Reported-by: marino
sys/vfs/ufs/dir.h
patch
|
blob
|
blame
|
history
diff --git
a/sys/vfs/ufs/dir.h
b/sys/vfs/ufs/dir.h
index
e5e941a
..
fdda380
100644
(file)
--- a/
sys/vfs/ufs/dir.h
+++ b/
sys/vfs/ufs/dir.h
@@
-115,7
+115,7
@@
struct direct {
*
*/
#define DIRECTSIZ(namlen) \
- ((offsetof(struct direct, d_name) + \
+ ((__offsetof(struct direct, d_name) + \
((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
#if (BYTE_ORDER == LITTLE_ENDIAN)
#define DIRSIZ(oldfmt, dp) \