diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2011-08-24 18:45:14 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-26 16:02:50 (GMT) |
commit | 3828620bc0c2d055c3e66c075de4c2a609baec26 (patch) | |
tree | 89e9ddd201f8599e47890f7fb5af327132c1fee7 /include/linux/tipc_config.h | |
parent | 7ff30c43f316f1febcfb6e84d511ab34ea433e7b (diff) | |
download | linux-fsl-qoriq-3828620bc0c2d055c3e66c075de4c2a609baec26.tar.xz |
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>
Diffstat (limited to 'include/linux/tipc_config.h')
-rw-r--r-- | include/linux/tipc_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/tipc_config.h b/include/linux/tipc_config.h index 0db2395..9730b0e 100644 --- a/include/linux/tipc_config.h +++ b/include/linux/tipc_config.h @@ -41,6 +41,10 @@ #include <linux/string.h> #include <asm/byteorder.h> +#ifndef __KERNEL__ +#include <arpa/inet.h> /* for ntohs etc. */ +#endif + /* * Configuration * |