Improve compatibility with older uapi kernel headers

Following up the work previously done in 2079f6b3c7.
Adding more defines for older Linux uapi headers missing some defines.
This commit is contained in:
Azkali committed 2022-02-24 09:49:56 +01:00
1 parent 30803c66f7
commit 75988b2ae5
6 files changed
+29

No files matched your search

+4
View File
@@ -28,6 +28,10 @@ namespace FHU::Syscalls {
#define CLONE_PIDFD 0x00001000
#endif
#ifndef SYS_statx
#define SYS_statx 291
#endif
inline int32_t getcpu(uint32_t *cpu, uint32_t *node) {
// Third argument is unused
#if defined(HAS_SYSCALL_GETCPU) && HAS_SYSCALL_GETCPU