From e8ea4501122483436cdeb0352d833ccefeda7d14 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 18 Sep 2008 23:33:06 +0200 Subject: Moved reboot.h include out of _reboot_magic_str in aux_syscalls.stp. --- tapset/aux_syscalls.stp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tapset/aux_syscalls.stp') diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 6ef9ed1e..a748a132 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -855,9 +855,15 @@ function _shutdown_how_str(how) { return sprintf("UNKNOWN VALUE: %d", how) } +%{ +// Needed for function __reboot_magic_str:string. Unfortunately cannot +// be inlined into the function since these header file defines static +// functions on some architectures. +#include +%} + function _reboot_magic_str:string(magic:long) %{ /* pure */ - #include int magic = (int)THIS->magic; switch (magic) { case LINUX_REBOOT_MAGIC1: -- cgit