No offensive linemen. No margin for error. No problem for the Dolphins.

The Dolphins survived the Chargers 20-16 Sunday evening with just enough offense, just enough defense — and just enough charity from San Diego.

Their reward: a move into a tie with the Jets for the sixth and final playoff spot in the AFC — with two games against New York still to play.

The Chargers had the ball and a chance to win, but Cameron Wake made a drive-altering sack, and Brent Grimes knocked down the last pass of the game to seal it.

Ryan Tannehill completed 22 of 35 passes for 268 yards with a touchdown and a pick for the Dolphins, who won for just the second time in seven games.

The day began with more bad news for the Dolphins’ wafer-thin offensive line: Mike Pouncey was ruled out of the game. In his absence, Nate Garner slid over to center, and newly signed Sam Brenner started at left guard.

Pouncey had missed Friday’s practice due to an illness that sent him to the hospital, but it was not believed to be a major issue at the time.

The Dolphins were already without Jonathan Martin (who’s away from the team) and Richie Incognito (suspended). Plus, top reserve lineman Will Yeatman is out for the year with a torn ACL.

The patchwork group held up well on Miami’s first drive, giving Tannehill time to direct an 11-play, 76-yard drive that resulted in a 22-yard Caleb Sturgis field goal.

The Dolphins’ defense followed that up with a play of its own. Philip Rivers overthrew Vincent Brown down the right sideline, and Grimes made an acrobatic interception to snuff out the drive.

But Tannehill gave it right back. A play after Derek Cox dropped an interception, Tannehill threw another one to Johnny Patrick.