Windows doesn't have LC_MESSAGES, so skip the code if it isn't defined.
# exit, fork, waitpid, sleep in waitpid.t
# errno in posix.t
# exit, fork, waitpid, sleep in waitpid.t
# errno in posix.t
-if ($Config{d_setlocale}) {
+if ($Config{d_setlocale} && defined &POSIX::LC_MESSAGES) {
my $non_english_locale;
local $! = 1;
my $english_message = "$!"; # Should be C locale since not in scope of
my $non_english_locale;
local $! = 1;
my $english_message = "$!"; # Should be C locale since not in scope of