From 20537052a2126f2310e4a3eca7bf6ff828f52640 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 11 May 2011 01:30:55 +0000 Subject: [PATCH] Quick build fix for the FreeBSD compatibility layer. Maybe the definition should be moved to a (even) more private header? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41427 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/x86/arch_int.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/private/kernel/arch/x86/arch_int.h b/headers/private/kernel/arch/x86/arch_int.h index 2768b396c9..b8a5828d23 100644 --- a/headers/private/kernel/arch/x86/arch_int.h +++ b/headers/private/kernel/arch/x86/arch_int.h @@ -57,6 +57,8 @@ arch_int_are_interrupts_enabled_inline(void) arch_int_are_interrupts_enabled_inline() +#ifdef __cplusplus + typedef struct interrupt_controller_s { const char *name; void (*enable_io_interrupt)(int32 num); @@ -70,4 +72,6 @@ typedef struct interrupt_controller_s { void arch_int_set_interrupt_controller(const interrupt_controller &controller); +#endif // __cplusplus + #endif /* _KERNEL_ARCH_x86_INT_H */