

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 lxc-dave/include/linux/net_ns.h |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff -puN include/linux/net_ns.h~fix1 include/linux/net_ns.h
--- lxc/include/linux/net_ns.h~fix1	2006-05-31 12:48:46.000000000 -0700
+++ lxc-dave/include/linux/net_ns.h	2006-05-31 12:48:46.000000000 -0700
@@ -37,11 +37,6 @@ extern int net_ns_add_dev(const char* de
 
 extern struct net_namespace init_net_ns;
 
-static inline void get_net_ns(struct net_namespace *ns)
-{
-	kref_get(&ns->kref);
-}
-
 #ifdef CONFIG_NET_NS
 
 extern int unshare_network(unsigned long unshare_flags,
@@ -49,6 +44,11 @@ extern int unshare_network(unsigned long
 extern int copy_network(int flags, struct task_struct *tsk);
 extern void free_net_ns(struct kref *kref);
 
+static inline void get_net_ns(struct net_namespace *ns)
+{
+	kref_get(&ns->kref);
+}
+
 static inline void put_net_ns(struct net_namespace *ns)
 {
 	kref_put(&ns->kref, free_net_ns);
@@ -71,6 +71,7 @@ static inline int copy_network(int flags
 {
 	return 0;
 }
+static inline void get_net_ns(struct net_namespace *ns) {}
 static inline void put_net_ns(struct net_namespace *ns) {}
 static inline void exit_network(struct task_struct *p) {}
 #endif /* CONFIG_NET_NS */
_
