To my knowledge, around here as long as you're zoned agricultural you have no restrictions. Our county is big on cattle ranching (though most are selling their farms to builders ) and I rarely see shelter for the cattle. Other farm animals generally do seem to have shelter though.