BOSTON — The Boston Red Sox acquired infielder Aaron Hill from the Milwaukee Brewers in exchange for two minor leaguers on Thursday.

The Red Sox will also receive cash in the deal that sent right-hander Aaron Wilkerson and infielder Wendell Rijo to Milwaukee.

To make room for Hill on the 40-man roster, the Red Sox designated outfielder Ryan LaMarre for assignment.

Hill, 34, is batting .283 with eight homers and 29 RBI in 78 games this season. In his career, he has hit .269 with 159 homers for Toronto, Arizona and Milwaukee. He was an All-Star with the Blue Jays in 2009.

Wilkerson is 6-3 with a 2.14 ERA in Double-A Portland and Triple-A Pawtucket this season. The right-hander has allowed three or fewer earned runs in 15 of 16 starts this season.

Rijo, 20, was named Boston’s 15th-best prospect by Baseball America last offseason. In 62 games this year with High-A Salem (11 games) and the Portland Sea Dogs (51 games), the 20-year-old infielder is 43 for 214 (.201) with 27 runs, 13 doubles, one home run, and 15 RBI.

METS: Pitcher Matt Harvey has symptoms consistent with thoracic outlet syndrome, and the star right-hander could be facing season-ending surgery to treat a serious condition that has jeopardized the career of other major league pitchers.

General Manager Sandy Alderson announced the diagnosis Thursday after Harvey was examined in St. Louis by a specialist, Dr. Robert Thompson.

Alderson said a decision on surgery is likely to come in the next few days before the All-Star break.

CARDINALS: All-Star second baseman Matt Carpenter was placed on the 15-day disabled list with a strained right oblique, with no timetable for his return.

Rookie shortstop Aledmys Diaz will replace Carpenter on the All-Star team. Diaz is batting .319 with 12 homers and 44 RBI.

TWINS: Pitching coach Neil Allen rejoined the team, six weeks after his arrest on suspicion of drunken driving.