That changed when GCC compiled to 64bit binaries. Try again with -m32 or -march=i686
I regularly compile a lot of stuff on this machine, indicating I never needed that before.
So none of the software I compiled had 32 bit time_t. And we still have 15 more years to migrate anything remaining behind.
And as you yourself noticed, `time_t` on 64-bit machine is also 64-bit, so even if code was written on 32-bit architecture, if you compile it on 64-bit one, it will automatically become 64-bit.
$ gcc -m32 time_size.c -o time_size
$ ./time_size
4
But I have the 32bit development packages installed (besides the 64bit pkgs). Am on Fedora.Though I couldn't find anything like `-D_FILE_OFFSET_BITS=64` for `off_t` and associated functions.