X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..7ee9d059c4eecf68ae4f8b0fb99ae2471eda79af:/bsd/sys/dir.h?ds=inline diff --git a/bsd/sys/dir.h b/bsd/sys/dir.h index 921ce9526..e6410375b 100644 --- a/bsd/sys/dir.h +++ b/bsd/sys/dir.h @@ -88,6 +88,6 @@ */ #undef DIRSIZ #define DIRSIZ(dp) \ - ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3)) + (((unsigned long)&((struct direct *)0)->d_name + (dp)->d_namlen+1 + 3) & ~3) #endif /* !_SYS_DIR_H_ */