Yosef Karo, Translation:Shulchan Aruch — Yoreh Deah 286
“ Seif 2 A house/room for straw, wood, livestock — require. But if women bathe there, since they stand there naked, it is not proper regard of Heaven for a mezuza to be there. (Rema: Only these specifically. But an actual [living] room, even if man and woman sleep and have relations there — requires mezuzah (in Responsa Maharil and the same wrote the BY) And some are lenient and say wherever women lie is exempt from mezuzah (BY in the name of Semak, the Kol Bo, and Mordekhai Hilkhot Mezuza end.) ”
