_sys_nerr seems to be the correct value but it is not available in `<__config>`. In my mingw setup the definition is located in `<stdlib.h>`, so an include needs to be added. http://reviews.llvm.org/D6558