Linux buildroot:predefs.h标头错误

Linux buildroot:predefs.h标头错误,linux,header,patch,buildroot,Linux,Header,Patch,Buildroot,我正在使用buildroot为Raspberry构建操作系统。编译时,我得到了这个错误 BuildRoot/bsquask/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/bits/predefs.h:20:3: error: #error "Never use <bits/predefs.h> directly; include <features.h> instead." # error "Never

我正在使用buildroot为Raspberry构建操作系统。编译时,我得到了这个错误

BuildRoot/bsquask/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/bits/predefs.h:20:3: error: #error "Never use <bits/predefs.h> directly; include <features.h> instead."
 # error "Never use <bits/predefs.h> directly; include <features.h> instead."
我在网上搜索了一下,为这个标题做了一个补丁并修改了它,他们说它可以工作,但对我来说不行。我发现了很多补丁

predefs.h

#ifndef _FEATURES_H
# error "Never use <bits/predefs.h> directly; include <features.h> instead."
#endif

#ifndef _PREDEFS_H
#define _PREDEFS_H

/* We do support the IEC 559 math functionality, real and complex, but only
   if a VFP coprocessor is present. If we don't have one, we fall back to
   software emulation and the functions won't work properly. So in general,
   we don't claim to support this functionality.  */
#if defined (__VFP_FP__) && !defined(__SOFTFP__)
#define __STDC_IEC_559__        1
#define __STDC_IEC_559_COMPLEX__    1
#endif

#endif /* predefs.h */

通过忽略注释行中的错误来编辑文件

#ifndef _FEATURES_H
//# error "Never use <bits/predefs.h> directly; include <features.h> instead."
#endif
根据我的经验,这样对我很好