Skip to content

Commit 9753d23

Browse files
Merge pull request #81819 from AnthonyLatsis/neotrygon
Basic: Adjust condition for include after macro removal in upstream LLVM
2 parents d29da0a + e7b2bc0 commit 9753d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Basic/Statistic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#ifdef HAVE_SYS_TIME_H
3434
#include <sys/time.h>
3535
#endif
36-
#ifdef HAVE_SYS_RESOURCE_H
36+
#if HAVE_GETRUSAGE && !defined(__HAIKU__)
3737
#include <sys/resource.h>
3838
#endif
3939
#ifdef HAVE_PROC_PID_RUSAGE
@@ -383,7 +383,7 @@ void UnifiedStatsReporter::recordJobMaxRSS(long rss) {
383383
}
384384

385385
int64_t UnifiedStatsReporter::getChildrenMaxResidentSetSize() {
386-
#if defined(HAVE_GETRUSAGE) && !defined(__HAIKU__)
386+
#if HAVE_GETRUSAGE && !defined(__HAIKU__)
387387
struct rusage RU;
388388
::getrusage(RUSAGE_CHILDREN, &RU);
389389
int64_t M = static_cast<int64_t>(RU.ru_maxrss);

0 commit comments

Comments
 (0)