projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ff30c4
)
headers, tipc: Add missing #include to <linux/tipc_config.h> for userland
author
Ben Hutchings
<ben@decadent.org.uk>
Wed, 24 Aug 2011 18:45:14 +0000
(18:45 +0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/tipc_config.h
b/include/linux/tipc_config.h
index 0db239590b4dac1d385c87966e36429a5e392d57..9730b0e51e4689474c23017fd0dc37786c12a852 100644
(file)
--- 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
*