I think this is also incorrect. What you should check is the host operating system, not the target. This will fail if you're cross-compiling.

I think it should be replaced with:
```
#if linux || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun
```