s3-ctdb: fix the build w/o HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
authorGünther Deschner <gd@samba.org>
Mon, 12 Dec 2011 11:17:35 +0000 (12:17 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 12 Dec 2011 16:42:29 +0000 (17:42 +0100)
Volker, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 12 17:42:29 CET 2011 on sn-devel-104

source3/lib/ctdbd_conn.c

index 940d477da1b31dcd6b9826cd3b15ab67a19fa25a..9d4af18ac59d15fb4280964f802c75a6bb095e5c 100644 (file)
@@ -1117,6 +1117,8 @@ fail:
        return false;
 }
 
+#ifdef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
+
 bool ctdb_serverids_exist(struct ctdbd_connection *conn,
                          const struct server_id *pids, unsigned num_pids,
                          bool *results)
@@ -1240,6 +1242,8 @@ fail:
        return result;
 }
 
+#endif /* HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL */
+
 /*
  * Get a db path
  */