st_mtim may or may not be visible, stat(2) says it requires _BSD_SOURCE and my gcc actually throws an error there with -std=c11.
As long as nanoseconds are not needed, it's better to use common st_mtime.
Also, with -Wall -Wpedantic gcc complains about unused variables.
st_mtim may or may not be visible, stat(2) says it requires _BSD_SOURCE and my gcc actually throws an error there with -std=c11. As long as nanoseconds are not needed, it's better to use common st_mtime.
Also, with -Wall -Wpedantic gcc complains about unused variables.