Skip to content
Commit 00719185 authored by Bruce Ashfield's avatar Bruce Ashfield Committed by Bruce Ashfield
Browse files

perf: x86-32: explicitly include <errno.h>



The 32bit x86 perf build does not find the system definitions of error
return values, hence we end up with:

| In file included from util/libunwind/x86_32.c:32:0:
| util/libunwind/../../arch/x86/util/unwind-libunwind.c: In function 'libunwind__x86_reg_id':
| util/libunwind/../../arch/x86/util/unwind-libunwind.c:109:11: error: 'EINVAL' undeclared (first use in this function); did you mean 'UNW_EINVAL'?
|    return -EINVAL;
|            ^~~~~~
|            UNW_EINVAL

By explicitly including errno.h, we can fix this build without impacting
other architectures.

Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@windriver.com>
parent 819b16c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment