On 25/04/2019 16:45, Jakub Jelinek wrote: > On Thu, Apr 25, 2019 at 03:32:41PM +0100, Richard Earnshaw (lists) wrote: >>> --- a/libphobos/libdruntime/core/sys/posix/sys/stat.d >>> +++ b/libphobos/libdruntime/core/sys/posix/sys/stat.d >>> @@ -709,10 +709,10 @@ version (CRuntime_Glibc) >>> } >>> int[2] __unused; >>> } >>> - static if (__USE_FILE_OFFSET64) >>> + version (D_LP64) >>> static assert(stat_t.sizeof == 128); >>> else >>> - static assert(stat_t.sizeof == 128); >>> + static assert(stat_t.sizeof == 104); >> >> I can't be sure just from the context, but 104 looks suspicious. Maybe >> that should be 64? > > Why? Not all struct stat fields are pointers or longs that double for -m64 > vs. -m32. > > Jakub >
I was forgetting that these were byte counts, not bit counts. Makes more sense when you realize that... R.