- include stubs for Solaris specific functionality - include some missing standard headers - guard Solaris specific constructs with preprocessor conditionals - fix pointer-to-int-cast undefined behavior