Debian Codegraph @

debian/patches/implicit-declaration

raw
1 commit 39baf09b58d626d46be3da79a3ab4f41deb37426
2 Author: Flavio Cruz <[email protected]>
3 Date: Wed Jul 3 21:38:43 2024 +0100
4
5 Make the MiG test suite compatible with GCC 14.
6
7 We need to expose the function declarations in mig_support.h.
8
9 Also fix test setup to work well in cases the build directory is not
10 inside the source directory.
11 Message-ID: <jjbpmhtxy4nybcmhlzueeenyv5taj4zygmsx6w336ggzcbr5yx@tnkp2ycfkf3t>
12
13 diff --git a/tests/bad/Makefile.am b/tests/bad/Makefile.am
14 index 2e1bf37..3af60eb 100644
15 --- a/tests/bad/Makefile.am
16 +++ b/tests/bad/Makefile.am
17 @@ -18,6 +18,6 @@
18
19 TESTS = invalid_subsystem.defs no_request_port.defs no_subsystem.defs
20 EXTRA_DIST = $(TESTS) run_bad_test.sh
21 -DEFS_LOG_COMPILER = sh ./$(srcdir)/run_bad_test.sh
22 +DEFS_LOG_COMPILER = sh $(srcdir)/run_bad_test.sh
23
24 include $(srcdir)/../Makeconf.am
25 diff --git a/tests/generate-only/Makefile.am b/tests/generate-only/Makefile.am
26 index d936d8a..d6294fa 100644
27 --- a/tests/generate-only/Makefile.am
28 +++ b/tests/generate-only/Makefile.am
29 @@ -18,6 +18,6 @@
30
31 TESTS = subsystem-kernel.defs subsystem-user.defs
32 EXTRA_DIST = $(TESTS) run_generate_only_test.sh
33 -DEFS_LOG_COMPILER = sh ./$(srcdir)/run_generate_only_test.sh
34 +DEFS_LOG_COMPILER = sh $(srcdir)/run_generate_only_test.sh
35
36 include $(srcdir)/../Makeconf.am
37 diff --git a/tests/good/Makefile.am b/tests/good/Makefile.am
38 index c5d8d7e..f01ccea 100644
39 --- a/tests/good/Makefile.am
40 +++ b/tests/good/Makefile.am
41 @@ -19,6 +19,6 @@
42 TESTS = case.defs complex-types.defs directions.defs import.defs \
43 routine.defs types.defs waittime.defs
44 EXTRA_DIST = $(TESTS) run_good_test.sh
45 -DEFS_LOG_COMPILER = sh ./$(srcdir)/run_good_test.sh
46 +DEFS_LOG_COMPILER = sh $(srcdir)/run_good_test.sh
47
48 include $(srcdir)/../Makeconf.am
49 diff --git a/tests/includes/mach/mig_support.h b/tests/includes/mach/mig_support.h
50 index e725a63..78c1f03 100644
51 --- a/tests/includes/mach/mig_support.h
52 +++ b/tests/includes/mach/mig_support.h
53 @@ -1 +1,17 @@
54 -/* This file allows the testsuite to compile under Linux. */
55 +/* This file allows the testsuite to compile under Linux
56 + * which doesn't have mach/mig_support.h */
57 +
58 +#ifndef _MACH_MIG_SUPPORT_H
59 +
60 +#define _MACH_MIG_SUPPORT_H 1
61 +
62 +#include <mach/std_types.h>
63 +#include <string.h>
64 +
65 +mach_port_t mig_get_reply_port (void);
66 +void mig_dealloc_reply_port (mach_port_t);
67 +void mig_put_reply_port (mach_port_t);
68 +void mig_allocate (vm_address_t *__addr_p, vm_size_t __size);
69 +void mig_deallocate (vm_address_t __addr, vm_size_t __size);
70 +
71 +#endif