Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 16 lines 489 B view raw
1diff --git a/tools/srp_shared.c b/tools/srp_shared.c 2index 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) 7 return; 8 9+#if defined(__APPLE__) 10+ *generation = ((uint64_t)buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec; 11+#else 12 *generation = ((uint64_t)buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec; 13+#endif 14 #endif 15 16 if (!lookup_data || !hashversion)