[cs631apue] stat timespec vs time_t
afonsec1 at stevens.edu
Sun Nov 20 20:33:21 EST 2011
I'm having compiling issues using struct stat.
but for some reasons,
the field struct stat.st_mtime of type time_t could not be resolved.
Rather, st_mtim of type timespec is defined.
timespec has a field named tv_sec of type time_t which I'm assuming it
gives me the same value that stat.st_mtime will give me.
Is there a macro that will enable st_mtime?
More information about the cs631apue