Yes, there is a __BSD__ but I think Mac OS X might define that header as well.