Ubuntu18.04编译Yocto:struct ucontext未定义

/**********************************************************************
报错信息: ERROR: | /mnt/hdd/home/yangzf/yocto/fsl-release-bsp/build-fb/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/user-exec.c:214:41: error: dereferencing pointer to incomplete type ‘struct ucontext’

说明:在Ubuntu 18.04上编译Yocto,出现的struct ucontext未定义的问题

2018-10-9 佛山顺德 Yangzf
/**********************************************************************
一、解决办法:
在{yocto_path}/build-fb/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/user-exec.c文件中,增加下列定义:

typedef struct ucontext
{
unsigned long int uc_flags;
struct ucontext *uc_link;
__sigset_t uc_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
long int uc_filler[5];
};

猜你喜欢

转载自blog.csdn.net/weixin_42421766/article/details/82982620
今日推荐