guardhouse

n. Building used to accommodate a military guard or to detain prisoners.

n. A building which is occupied by the guard, and in which soldiers are confined for misconduct; hence, a lock-up.