diff --git a/FEXHeaderUtils/FEXHeaderUtils/Syscalls.h b/FEXHeaderUtils/FEXHeaderUtils/Syscalls.h index 327f593ff..a995b4b65 100644 --- a/FEXHeaderUtils/FEXHeaderUtils/Syscalls.h +++ b/FEXHeaderUtils/FEXHeaderUtils/Syscalls.h @@ -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 diff --git a/Source/Tests/LinuxSyscalls/x32/Ioctl/asound.h b/Source/Tests/LinuxSyscalls/x32/Ioctl/asound.h index 25b6ade14..b66319f94 100644 --- a/Source/Tests/LinuxSyscalls/x32/Ioctl/asound.h +++ b/Source/Tests/LinuxSyscalls/x32/Ioctl/asound.h @@ -12,6 +12,10 @@ namespace asound { #define SNDRV_TIMER_IOCTL_TREAD_OLD _IOW('T', 0x02, int) #endif +#ifndef SNDRV_PCM_IOCTL_USER_PVERSION +#define SNDRV_PCM_IOCTL_USER_PVERSION _IOW('A', 0x04, int) +#endif + #ifndef SNDRV_TIMER_IOCTL_TREAD64 #define SNDRV_TIMER_IOCTL_TREAD64 _IOW('T', 0xa4, int) #endif diff --git a/Source/Tests/LinuxSyscalls/x32/Ioctl/sockios.h b/Source/Tests/LinuxSyscalls/x32/Ioctl/sockios.h index 91b76a2c7..599325c73 100644 --- a/Source/Tests/LinuxSyscalls/x32/Ioctl/sockios.h +++ b/Source/Tests/LinuxSyscalls/x32/Ioctl/sockios.h @@ -7,6 +7,9 @@ namespace FEX::HLE::x32 { namespace sockios { +#ifndef SIOCGSKNS +#define SIOCGSKNS 0x894C +#endif #include "Tests/LinuxSyscalls/x32/Ioctl/sockios.inl" } } diff --git a/Source/Tests/LinuxSyscalls/x32/Ioctl/streams.h b/Source/Tests/LinuxSyscalls/x32/Ioctl/streams.h index 037e9331a..eec63edf9 100644 --- a/Source/Tests/LinuxSyscalls/x32/Ioctl/streams.h +++ b/Source/Tests/LinuxSyscalls/x32/Ioctl/streams.h @@ -6,6 +6,9 @@ namespace FEX::HLE::x32 { namespace streams { +#ifndef TIOCGPTPEER +#define TIOCGPTPEER _IO('T', 0x41) +#endif #include "Tests/LinuxSyscalls/x32/Ioctl/streams.inl" } diff --git a/Source/Tests/LinuxSyscalls/x32/Ioctl/usbdev.h b/Source/Tests/LinuxSyscalls/x32/Ioctl/usbdev.h index 99186ce8c..0de1608e8 100644 --- a/Source/Tests/LinuxSyscalls/x32/Ioctl/usbdev.h +++ b/Source/Tests/LinuxSyscalls/x32/Ioctl/usbdev.h @@ -7,6 +7,9 @@ namespace FEX::HLE::x32 { namespace usbdev { +#ifndef USBDEVFS_GET_SPEED +#define USBDEVFS_GET_SPEED _IO('U', 31) +#endif #ifndef USBDEVFS_CONNINFO_EX #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) #endif diff --git a/Source/Tests/LinuxSyscalls/x32/Socket.cpp b/Source/Tests/LinuxSyscalls/x32/Socket.cpp index 757643a5c..980ffce56 100644 --- a/Source/Tests/LinuxSyscalls/x32/Socket.cpp +++ b/Source/Tests/LinuxSyscalls/x32/Socket.cpp @@ -46,6 +46,18 @@ namespace FEX::HLE::x32 { #ifndef SO_TIMESTAMPING_OLD #define SO_TIMESTAMPING_OLD 37 #endif +#ifndef SO_MEMINFO +#define SO_MEMINFO 55 +#endif +#ifndef SO_INCOMING_NAPI_ID +#define SO_INCOMING_NAPI_ID 56 +#endif +#ifndef SO_PEERGROUPS +#define SO_PEERGROUPS 59 +#endif +#ifndef SO_ZEROCOPY +#define SO_ZEROCOPY 60 +#endif #ifndef SO_TXTIME #define SO_TXTIME 61 #endif