1--- a/tools/srp_shared.c
2+++ b/tools/srp_shared.c
3@@ -173,7 +173,11 @@ void user_verifier_lookup(char * username,
4 if (stat(srpfile, &buf) != 0)
5 return;
6
7+#if defined(__APPLE__)
8+ *generation = (buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
9+#else
10 *generation = (buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
11+#endif
12 #endif
13
14 if (!lookup_data || !hashversion)