Closed justinba1010 closed 5 years ago
I can switch to st_mtime
instead, I didn't realized st_mtim
was linux-specific.
Should be fixed in https://github.com/jyn514/crappy-server/commit/0a53c39da3e9ffa2af24e81d3d1dc09a5c6a7fcf, feel free to reopen if it doesn't work.
By the way, the error is this:
The library call stat
is a wrapper around the system call of the same name. It takes in an output parameter of type struct stat *
. On Linux and FreeBSD that struct has a field called st_mtim
which returns the last time the file was modified and is more accurate than the older st_mtime
. However it's less portable (as you can see from the error) and I don't need the accuracy, so I changed it to the older field.
Run man stat
for more info.
I get this error when using
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
forTarget: x86_64-apple-darwin18.2.0
. I tried to look into it, but I am having an issue figuring out what this exactly does. I attachedstat.h
from the Apple SDK library.