diff options
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r-- | tapset/aux_syscalls.stp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <linux/reboot.h> +%} + function _reboot_magic_str:string(magic:long) %{ /* pure */ - #include <linux/reboot.h> int magic = (int)THIS->magic; switch (magic) { case LINUX_REBOOT_MAGIC1: |