Skip to content

Commit f51a246

Browse files
authored
Merge pull request #1489 from ahoppen/ahoppen/uint64
Change included header for uint64_t in InstructionsExecuted.h
2 parents 0535623 + 8fdcc2f commit f51a246

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/_InstructionCounter/include/InstructionsExecuted.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include <unistd.h>
13+
#include <stdint.h>
1414

1515
/// On macOS returns the number of instructions the process has executed since
1616
/// it was launched, on all other platforms returns 0.

Sources/_InstructionCounter/src/InstructionsExecuted.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#ifdef TARGET_IS_MACOS
2323
#include <libproc.h>
2424
#include <sys/resource.h>
25+
#include <unistd.h>
2526

2627
uint64_t getInstructionsExecuted() {
2728
struct rusage_info_v4 ru;

0 commit comments

Comments
 (0)