We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d32861 commit e7903f9Copy full SHA for e7903f9
benchmark/utils/LibProc/LibProcIncludeSystemHeader.h
@@ -10,6 +10,13 @@
10
//
11
//===----------------------------------------------------------------------===//
12
13
-// This file exists to include the following not-yet-modularized system header:
+// This file exists to include the not-yet-modularized libproc.h system header.
14
15
+#if __has_include(<libproc.h>)
16
#include <libproc.h>
17
+#else
18
+#include <Availability.h>
19
+#include <sys/resource.h>
20
+// Some SDKs are missing the libproc.h header, despite this symbol being present.
21
+int proc_pid_rusage(int pid, int flavor, rusage_info_t *buffer) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
22
+#endif
0 commit comments