diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2011-08-24 18:45:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-26 12:02:50 -0400 |
commit | 3828620bc0c2d055c3e66c075de4c2a609baec26 (patch) | |
tree | 89e9ddd201f8599e47890f7fb5af327132c1fee7 /include/linux | |
parent | 7ff30c43f316f1febcfb6e84d511ab34ea433e7b (diff) |
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')
-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 0db239590b4d..9730b0e51e46 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 * |