I built an SDK for RZ/N1D and tried to build simple application for capture packets using pcap, but I'm getting following error on compliing. I check the include directories but couldn't find an "asm" folder under /usr/include or elsewhere. Could someone help pointing out what went wrong?
In file included from main.c:2:
/opt/poky/2.4.3/sysroots/armv7vehf-vfp-poky-linux-gnueabi/usr/include/bits/socket.h:387:10: fatal error: asm/socket.h: No such file or directory
#include <asm/socket.h>
compilation terminated.
EDIT: The header socket.h is available in kernel-source/include/uapi/asm-generic/ folder. Adding a symbolic link to this temporary solves the problem. But I'd like to know what I missed while creating the SDK.
Thank you!