kernel/ufs: Use __offsetof() instead of offsetof() (unbreaks buildworld).
authorSascha Wildner <saw@online.de>
Mon, 4 Mar 2013 00:51:24 +0000 (01:51 +0100)
committerSascha 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

index e5e941a..fdda380 100644 (file)
@@ -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) \