mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`HAVE_SYS_RESOURCE_H` was removed in https://github.com/llvm/llvm-project/pull/123288, so this header is no longer included at this particular location on rebranch, which breaks the Linux build, where it is not transitively included either. Use the same condition as in the use site (`getChildrenMaxResidentSetSize`) instead. Also, don't wrap `HAVE_GETRUSAGE` in `defined()` in case it does get defined to 0.
27 KiB
27 KiB