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/ChangeLog | 4 ++++ tapset/aux_syscalls.stp | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 46e15fd6..94531989 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,7 @@ +2008-09-18 Mark Wielaard + + * aux_syscalls.stp (_reboot_magic_str): Moved reboot.h include out. + 2008-09-17 Mark Wielaard * aux_syscalls.stp: Removed commented out code. Removed unneeded 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