depot/third_party/nixpkgs/pkgs/development/libraries/librist/darwin.patch
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

14 lines
386 B
Diff

--- 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__)
+ *generation = (buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
+#else
*generation = (buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
+#endif
#endif
if (!lookup_data || !hashversion)