@@ -209,8 +209,13 @@ static void drop_mgr_remove_port(osm_sm_t * sm, IN osm_port_t * p_port)
drop_mgr_clean_physp(sm, p_port->p_physp);
while (!cl_is_qlist_empty(&p_port->mcm_list)) {
+#ifndef __WIN__
mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list),
mcm_port, list_item);
+#else
+ mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list),
+ mcm_port, list_item, (osm_mcm_port_t*) );
+#endif
osm_mgrp_delete_port(sm->p_subn, sm->p_log, mcm_port->mgrp,
p_port->guid);
}
@@ -503,7 +503,11 @@ Exit:
static void query_sm_info(cl_map_item_t * item, void *cxt)
{
osm_madw_context_t context;
+#ifndef __WIN__
osm_remote_sm_t *r_sm = cl_item_obj(item, r_sm, map_item);
+#else
+ osm_remote_sm_t *r_sm = cl_item_obj(item, r_sm, map_item,(osm_remote_sm_t *));
+#endif
osm_sm_t *sm = cxt;
ib_api_status_t ret;
@@ -388,7 +388,11 @@ static void ucast_mgr_process_tbl(IN cl_map_item_t * p_map_item,
cl_list_item_t *item;
for (item = cl_qlist_head(list); item != cl_qlist_end(list);
item = cl_qlist_next(item)) {
+#ifndef __WIN__
osm_port_t *port = cl_item_obj(item, port, list_item);
+#else
+ osm_port_t *port = cl_item_obj(item, port, list_item,(osm_port_t*));
+#endif
ucast_mgr_process_port(p_mgr, p_sw, port, i);
}
}