浏览代码

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>
Ben Hutchings 14 年之前
父节点
当前提交
3828620bc0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/linux/tipc_config.h

+ 4 - 0
include/linux/tipc_config.h

@@ -41,6 +41,10 @@
 #include <linux/string.h>
 #include <linux/string.h>
 #include <asm/byteorder.h>
 #include <asm/byteorder.h>
 
 
+#ifndef __KERNEL__
+#include <arpa/inet.h> /* for ntohs etc. */
+#endif
+
 /*
 /*
  * Configuration
  * Configuration
  *
  *