/usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’

/usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
/usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here
/usr/include/sys/types.h:67: error: conflicting types for ‘gid_t’
/usr/include/linux/types.h:27: error: previous declaration of ‘gid_t’ was here
/usr/include/sys/types.h:72: error: conflicting types for ‘mode_t’
/usr/include/linux/types.h:15: error: previous declaration of ‘mode_t’ was here
/usr/include/sys/types.h:77: error: conflicting types for ‘nlink_t’
/usr/include/linux/types.h:16: error: previous declaration of ‘nlink_t’ was here
/usr/include/sys/types.h:82: error: conflicting types for ‘uid_t’
/usr/include/linux/types.h:26: error: previous declaration of ‘uid_t’ was here

解法

CFLAGS += $(addprefix -idirafter,$(KERNEL_DIR)/include)

内核目录作为第二查找目录

上一篇:Java对网络图片/本地图片转换成Base64编码和解码


下一篇:物化视图快速刷新报 ORA-12008 & ORA-01031