base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / librist / darwin.patch
blob6a5cc8459a36780a0c975bd229f085d19fdaeb4b
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)
7 return;
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
16 if (!lookup_data || !hashversion)