编译busybox 错误 error: storage size of ‘rlimit_fsize’ isn’t known

3320阅读 0评论2017-12-26 renlong_cdut
分类:嵌入式

编译busybox
修改一下
fang@fang-virtual-machine:~/soft/build/busybox-1.20.2$ vi include/libbb.h 
添加一行 

点击(此处)折叠或打开

  1. #include "sys/resource.h"

  1. 要不会出现如下错误:
  2. loginutils/passwd.c: In function ‘passwd_main’:
  3. loginutils/passwd.c:104:16: error: storage size of ‘rlimit_fsize’ isn’t known
  4. loginutils/passwd.c:188:2: warning: implicit declaration of function ‘setrlimit’ [-Wimplicit-function-declaration]
  5. loginutils/passwd.c:188:12: error: ‘RLIMIT_FSIZE’ undeclared (first use in this function)
  6. loginutils/passwd.c:188:12: note: each undeclared identifier is reported> each function it appears in
  7. loginutils/passwd.c:104:16: warning: unused variable ‘rlimit_fsize’ [-Wunused-variable]
上一篇:Linux设备驱动开发-linux驱动中的异步通知
下一篇:zynq 7015 linux跑起来之导入之linux移植