Skip to content

Commit

Permalink
headers, tipc: Add missing #include to <linux/tipc_config.h> for user…
Browse files Browse the repository at this point in the history
…land

<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>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Aug 26, 2011
1 parent 7ff30c4 commit 3828620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/tipc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#include <linux/string.h>
#include <asm/byteorder.h>

#ifndef __KERNEL__
#include <arpa/inet.h> /* for ntohs etc. */
#endif

/*
* Configuration
*
Expand Down

0 comments on commit 3828620

Please sign in to comment.