Skip to content

Commit a3d8e76

Browse files
committed
Basic: Adjust condition for include after macro removal in upstream LLVM
`HAVE_SYS_RESOURCE_H` was removed in llvm/llvm-project#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.
1 parent 94b40d1 commit a3d8e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Basic/Statistic.cpp

Lines changed: 1 addition & 1 deletion
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 defined(HAVE_GETRUSAGE) && !defined(__HAIKU__)
3737
#include <sys/resource.h>
3838
#endif
3939
#ifdef HAVE_PROC_PID_RUSAGE

0 commit comments

Comments
 (0)