updated the 3.0 branch from the head branch - ready for alpha18
[samba.git] / source3 / web / diagnose.c
index 73c23ea2bb528171508cbf5125964a852b70d1f5..e822474aab4187c59c6c7fcea50d9949c6c0c210 100644 (file)
@@ -19,7 +19,7 @@
 */
 
 #include "includes.h"
-#include "smb.h"
+#include "../web/swat_proto.h"
 
 
 /* check to see if nmbd is running on localhost by looking for a __SAMBA__
 BOOL nmbd_running(void)
 {
        extern struct in_addr loopback_ip;
-       int fd, count;
+       int fd, count, flags;
        struct in_addr *ip_list;
 
        if ((fd = open_socket_in(SOCK_DGRAM, 0, 3,
                                 interpret_addr("127.0.0.1"), True)) != -1) {
                if ((ip_list = name_query(fd, "__SAMBA__", 0, 
                                          True, True, loopback_ip,
-                                         &count)) != NULL) {
+                                         &count, &flags, NULL)) != NULL) {
                        SAFE_FREE(ip_list);
                        close(fd);
                        return True;