Leont/file-map — pull request #1 by timj (2012-07-12 22:56:22+00:00)
Title: Minor compile fixes on older perl

I was unable to build File::Map on perl 5.8.7 thread-multi (don't ask, long story) but it failed because my_perl was not defined. Adding a pTHX fixes that problem. Then I got a segv in the strerror call for a test in 20-errors.t. I think that's caused by a problem with the thread local buffers when strerror is remapped to strerror_r. It was then I realised that we should be in the strerror_r path anyhow and saw that the config.h include file uses HAS_STRERROR_R rather than HAVE_STRERROR_R. Making that change lets the module build with all tests passing.