ANTIOCH — A man who awoke to flames in his living quarters inside a warehouse got out with only minor burns in a fire that broke out early Tuesday, a fire official said.

Nobody else was injured in the fire, which happened in a building in the 1500 block of Walnut Avenue, spokesman Steve Hill of the Contra Costa County Fire Protection District said. The fire also spread to a neighboring shed, he said.

Fire crews called to the blaze around 12:33 a.m. saw black smoke and said about three-quarters of the building was ablaze, Hill said. Crews prevented the fire from spreading to any of the other neighboring buildings.

According to Hill, the man awoke to “flames surrounding him.” He had been sleeping in a small living structure within the warehouse, Hill said. Medics treated him at the scene and released him.

Crews brought a water tender to supply the hoses, because of where the fire broke out, Hill said. The warehouse is between Wilbur Avenue and E. 18th Street, off Vierra Road, and there were no fire hydrants within 400 yards in any direction, Hill said.

The tender is a large tank that transports water, and fire crews never were without a water supply, Hill said.