I am trying to compile a small C program on Slackware 13.37 that uses libpcap libraries. When I do
PHP Code:
gcc app.c -lpcap
it throws error:
PHP Code:
/usr/stuff/app/libpcap/pcap.h:46:25: fatal error: sys/types.h: No such file or directory
If I correctly understand, this has something to do with not having
PHP Code:
kernel-headers
installed. If so, how can I install kernel-headers on my system? Or am I misunderstanding the problem?
Also, the directory where /sys/types.h is supposed to be located is completely empty - /usr/include/