Skip to content

Commit

Permalink
fix compilation with AppleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
clementperon committed Feb 2, 2025
1 parent 7253ff8 commit b9a2d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion absl/random/internal/randen_detect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static absl::optional<T> ReadSysctlByName(const char* name) {
size_t val_size = sizeof(T);
int ret = sysctlbyname(name, &val, &val_size, nullptr, 0);
if (ret == -1) {
return std::nullopt;
return absl::nullopt;
}
return val;
}
Expand Down

0 comments on commit b9a2d39

Please sign in to comment.