Sentence:  Before the gates of Bari, he lodged in a miserable hut or <WSD>barrack</WSD>, composed of dry branches, and thatched with straw; a perilous station, on all sides open to the inclemency of the winter and the spears of the enemy. 
Meaning of the word marked with <WSD> tags:  A building for soldiers, especially within a garrison; "originally referred to temporary huts, now usually to a permanent structure or set of buildings".