LoongArch: Fix a build error with GCC 14 (#825)
authorXi Ruoyao <xry111@xry111.site>
Thu, 15 Feb 2024 12:49:27 +0000 (20:49 +0800)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 12:49:27 +0000 (07:49 -0500)
Fix the build error with GCC 14:

    ../src/loongarch64/ffi.c: In function 'ffi_prep_closure_loc':
    ../src/loongarch64/ffi.c:525:7: error: implicit declaration of
    function 'ffi_tramp_set_parms' [-Wimplicit-function-declaration]

src/loongarch64/ffi.c

index 140be3bc3dc49d9b795e555e68f9b86e98f9692a..b5ac18ea97e2f485506b85435aa64fa0045f5b68 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <ffi.h>
 #include <ffi_common.h>
+#include <tramp.h>
 
 #include <stdlib.h>
 #include <stdint.h>