mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
fix compilation with AppleClang
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user