From 39baf09b58d626d46be3da79a3ab4f41deb37426 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 3 Jul 2024 21:38:43 +0100 Subject: Make the MiG test suite compatible with GCC 14. We need to expose the function declarations in mig_support.h. Also fix test setup to work well in cases the build directory is not inside the source directory. Message-ID: --- tests/includes/mach/mig_support.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tests/includes/mach/mig_support.h') diff --git a/tests/includes/mach/mig_support.h b/tests/includes/mach/mig_support.h index e725a63..78c1f03 100644 --- a/tests/includes/mach/mig_support.h +++ b/tests/includes/mach/mig_support.h @@ -1 +1,17 @@ -/* This file allows the testsuite to compile under Linux. */ +/* This file allows the testsuite to compile under Linux + * which doesn't have mach/mig_support.h */ + +#ifndef _MACH_MIG_SUPPORT_H + +#define _MACH_MIG_SUPPORT_H 1 + +#include +#include + +mach_port_t mig_get_reply_port (void); +void mig_dealloc_reply_port (mach_port_t); +void mig_put_reply_port (mach_port_t); +void mig_allocate (vm_address_t *__addr_p, vm_size_t __size); +void mig_deallocate (vm_address_t __addr, vm_size_t __size); + +#endif -- cgit v1.2.3