* add needed forward declaration
* add necessary #includes
* move `#include "common/config.h"` to .cc, as it's not part of
interface.
Signed-off-by: Kefu Chai <kchai@redhat.com>
#include "include/str_list.h"
#include "common/ceph_context.h"
#ifndef WITH_SEASTAR
+#include "common/config.h"
#include "common/config_obs.h"
#endif
#include "common/debug.h"
#ifndef CEPH_PICK_ADDRESS_H
#define CEPH_PICK_ADDRESS_H
-#include "common/config.h"
+#include <string>
+#include <list>
class CephContext;
+struct entity_addr_t;
class entity_addrvec_t;
* @param ls list of addresses
* @param match [out] pointer to match, if an item in @a ls is found configured locally.
*/
-bool have_local_addr(CephContext *cct, const list<entity_addr_t>& ls, entity_addr_t *match);
-
+bool have_local_addr(CephContext *cct, const std::list<entity_addr_t>& ls, entity_addr_t *match);
const struct sockaddr *find_ip_in_subnet_list(
CephContext *cct,