1 diff --git a/tools/srp_shared.c b/tools/srp_shared.c
2 index f782126..23e82a5 100644
3 --- a/tools/srp_shared.c
4 +++ b/tools/srp_shared.c
5 @@ -173,7 +173,11 @@ void user_verifier_lookup(char * username,
6 if (stat(srpfile, &buf) != 0)
9 +#if defined(__APPLE__)
10 + *generation = ((uint64_t)buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
12 *generation = ((uint64_t)buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
16 if (!lookup_data || !hashversion)