aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/frame.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/frame.h b/include/sys/frame.h
index b6bbaa79b..caae85142 100644
--- a/include/sys/frame.h
+++ b/include/sys/frame.h
@@ -25,7 +25,11 @@ extern "C" {
#if defined(__KERNEL__) && defined(HAVE_KERNEL_OBJTOOL) && \
defined(HAVE_STACK_FRAME_NON_STANDARD)
+#if defined(HAVE_KERNEL_OBJTOOL_HEADER)
+#include <linux/objtool.h>
+#else
#include <linux/frame.h>
+#endif
#else
#define STACK_FRAME_NON_STANDARD(func)
#endif