2024-01-25 14:12:00 +00:00
|
|
|
diff --git a/tools/srp_shared.c b/tools/srp_shared.c
|
|
|
|
index f782126..23e82a5 100644
|
2023-10-09 19:29:22 +00:00
|
|
|
--- a/tools/srp_shared.c
|
|
|
|
+++ b/tools/srp_shared.c
|
|
|
|
@@ -173,7 +173,11 @@ void user_verifier_lookup(char * username,
|
|
|
|
if (stat(srpfile, &buf) != 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
+#if defined(__APPLE__)
|
2024-01-25 14:12:00 +00:00
|
|
|
+ *generation = ((uint64_t)buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
|
2023-10-09 19:29:22 +00:00
|
|
|
+#else
|
2024-01-25 14:12:00 +00:00
|
|
|
*generation = ((uint64_t)buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
|
2023-10-09 19:29:22 +00:00
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (!lookup_data || !hashversion)
|