Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

headers, tipc: Add missing #include to <linux/tipc_config.h> for userland

<linux/tipc_config.h> defines inline functions using ntohs() etc.
For userland these are defined in <arpa/inet.h>.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
3828620b 7ff30c43

+4
+4
include/linux/tipc_config.h
··· 41 41 #include <linux/string.h> 42 42 #include <asm/byteorder.h> 43 43 44 + #ifndef __KERNEL__ 45 + #include <arpa/inet.h> /* for ntohs etc. */ 46 + #endif 47 + 44 48 /* 45 49 * Configuration 46 50 *