headers, tipc: Add missing #include to <linux/tipc_config.h> for userland
authorBen Hutchings <ben@decadent.org.uk>
Wed, 24 Aug 2011 18:45:14 +0000 (18:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:02:50 +0000 (12:02 -0400)
<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>
include/linux/tipc_config.h

index 0db239590b4dac1d385c87966e36429a5e392d57..9730b0e51e4689474c23017fd0dc37786c12a852 100644 (file)
 #include <linux/string.h>
 #include <asm/byteorder.h>
 
+#ifndef __KERNEL__
+#include <arpa/inet.h> /* for ntohs etc. */
+#endif
+
 /*
  * Configuration
  *