posix: Solaris doesn't have strnlen either
Merge pull request #1974 from ghedo/strnlen

posix: Solaris doesn't have strnlen either