r6225: get rid of warnings from my compiler about nested externs
[samba.git] / source / lib / wins_srv.c
index b82e04e13ccea6b6ea2f2c7b6e840cc147cd7d7e..c139f427ca89c8e3c6b572e923c4429e6032300d 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "includes.h"
 
+extern struct in_addr loopback_ip;
+
 /*
   This is pretty much a complete rewrite of the earlier code. The main
   aim of the rewrite is to add support for having multiple wins server
@@ -280,7 +282,6 @@ struct in_addr wins_srv_ip_tag(const char *tag, struct in_addr src_ip)
 
        /* if we are a wins server then we always just talk to ourselves */
        if (lp_wins_support()) {
-               extern struct in_addr loopback_ip;
                return loopback_ip;
        }