Limit catopen usage to unix-like OSes

Operating systems that are not unix-like are unlikely to have access to
catopen. Instead of black-listing each one, we now filter out all non-unix
operating systems first. We then exclude the unix-like operating systems
that don't have catopen. _WIN32 counts as a unix-like operating system
because of cygwin.

http://reviews.llvm.org/D16639


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@260381 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed