Skip to content

Commit a1e0b95

Browse files
authored
Merge pull request #37 from AshkanAliabadi/issue_36
Fix a build error some users are experiencing wherein __NR_getcpu is not defined
2 parents 0cc563a + 02fe981 commit a1e0b95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
#include <unistd.h>
1212
#include <sys/syscall.h>
13+
#if !defined(__NR_getcpu)
14+
#include <asm-generic/unistd.h>
15+
#endif
1316
#endif
1417

1518
bool cpuinfo_is_initialized = false;

0 commit comments

Comments
 (0)