[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems after compiling new kernel



Pollywog wrote:
> After compiling kernel 2.2.10 and trying to install new software, I got:
...
> ./pcap-linux.c:31: net/if.h: No such file or directory
...
> Why does this happen?  Am I doing something wrong?  It seems I frequently
> "lose" if.h

In the 2.2.x kernels, if.h is in include/linux/, so instead of #include
<net/if.h>, you should use #include <linux/if.h>.

HTH,
 -Remco


Reply to: