On Thu, Jul 24, 2008 at 5:00 PM, Felipe Sateler wrote: > I don't think that is the problem. GCC would complain if it can't find a > header file. Perhaps in gentoo the real definition of struct ifreq is > somewhere else? I'm not telling gcc the exact file to include, I'm indicating the directories to look into. if.h is in the subdir net/: # grep -r ifreq /usr/include/gentoo-multilib/amd64 /usr/include/gentoo-multilib/amd64/net/if.h:struct ifreq