title: Is there a header identifying SunOS/Solaris version at compile time?
body: <p>I am trying to detect Solaris/SunOS version at compile time so that I can enable/disable use of <a href="http://docs.oracle.com/cd/E26505_01/html/816-5168/port-create-3c.html#REFMAN3Aport-create-3c" rel="nofollow"><code>port_create()</code></a> and other APIs.</p>
  
  <p>Is there a header identifying SunOS/Solaris version at compile time?</p>