diff --git a/src/system/kernel/team.cpp b/src/system/kernel/team.cpp index 5d5eed5b9e..064a99e151 100644 --- a/src/system/kernel/team.cpp +++ b/src/system/kernel/team.cpp @@ -737,10 +737,10 @@ set_team_name(struct team* team, const char* name) static struct team* create_team_struct(const char* name, bool kernel) { - struct team* team = new(std::nothrow) struct team; + ::team* team = new(std::nothrow) ::team; if (team == NULL) return NULL; - ObjectDeleter teamDeleter(team); + ObjectDeleter< ::team> teamDeleter(team); team->next = team->siblings_next = team->children = team->parent = NULL; team->id = allocate_thread_id();