I can't find any info on what macro to use in an ifdef to determine the illumos kernel. I use __linux to catch Linux.
Filler for stackoverflow grammar check filler filler filler filler.
I can't find any info on what macro to use in an ifdef to determine the illumos kernel. I use __linux to catch Linux.
Filler for stackoverflow grammar check filler filler filler filler.
Illumos based kernels such as SmartOS and OpenIndiana use
__sun
and it is sometimes suggested to check for both__sun
and__SVR4
.Update:
There will soon be an
__illumos__
macro: https://www.illumos.org/issues/13726