Conflicting header files in Linux Kernel Module
<p>I'm trying to write a Linux kernel module that uses <code>first_net_device()</code> from <code>&lt;linux/netdevice.h&gt;</code> and <code>getsockname()</code> from <code>&lt;sys/socket.h&gt;</code>. The problem at compile time is that these two header files have some duplicate definitions, resulting in a compilation failure. How do I solve this? Thanks</p>