diff --git a/packages/libffi/src/ffi.pp b/packages/libffi/src/ffi.pp index fa41898ee2..2e6de0af0c 100644 --- a/packages/libffi/src/ffi.pp +++ b/packages/libffi/src/ffi.pp @@ -272,8 +272,8 @@ const FFI_TRAMPOLINE_SIZE = 20; {$elseif defined(CPUMIPS64)} FFI_TRAMPOLINE_SIZE = 56; -#endif - +{$elseif defined(CPUXTENSA)} + FFI_TRAMPOLINE_SIZE = 24; {$endif} { diff --git a/packages/rtl-extra/src/linux/unixsock.inc b/packages/rtl-extra/src/linux/unixsock.inc index 45a52dd33d..e86a4cf5c2 100644 --- a/packages/rtl-extra/src/linux/unixsock.inc +++ b/packages/rtl-extra/src/linux/unixsock.inc @@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. } -{$if not defined(cpux86_64) and not defined(cpuaarch64) and not defined(cpuriscv32) and not defined(cpuriscv64) and not defined(NO_SYSCALL_SOCKETCALL)} +{$if not defined(cpux86_64) and not defined(cpuaarch64) and not defined(cpuriscv32) and not defined(cpuriscv64) and not defined(cpuxtensa) and not defined(NO_SYSCALL_SOCKETCALL)} {$define NEED_SOCKETCALL} {$endif} diff --git a/packages/rtl-extra/src/unix/ipc.pp b/packages/rtl-extra/src/unix/ipc.pp index 0daf1b0329..8b4367d038 100644 --- a/packages/rtl-extra/src/unix/ipc.pp +++ b/packages/rtl-extra/src/unix/ipc.pp @@ -546,7 +546,7 @@ type msg_lrpid : ipc_pid_t; pad1 : qword; pad2 : qword; -{$ENDIF} +{$ENDIF} end; {$else} {$if defined(Darwin)} @@ -888,7 +888,7 @@ uses Syscall; {$ifndef FPC_USE_LIBC} {$if defined(Linux)} - {$if defined(cpux86_64) or defined(cpuaarch64) or defined(cpuriscv32) or defined(cpuriscv64) or defined(NO_SYSCALL_IPC)} + {$if defined(cpux86_64) or defined(cpuaarch64) or defined(cpuriscv32) or defined(cpuriscv64) or defined(cpuxtensa) or defined(NO_SYSCALL_IPC)} {$i ipcsys.inc} {$else} {$i ipccall.inc}