exclude solaris section on other platforms

The previous commit broke the build for platforms other than solaris. #ifdef section created around offending function.