summaryrefslogtreecommitdiff
path: root/ext/POSIX
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-01-07 10:31:29 -0700
committerKarl Williamson <khw@cpan.org>2015-01-07 10:39:54 -0700
commited0cac5b003824d9b42c00752f4f894700e967d4 (patch)
tree13a1fd4db66845c532790bf5f7fe034836805530 /ext/POSIX
parent3131b5278035ac433911e625fae01ba3b743ef49 (diff)
downloadperl-ed0cac5b003824d9b42c00752f4f894700e967d4.tar.gz
Fix broken ext/POSIX/t/wrappers.t on Windows
Windows doesn't have LC_MESSAGES, so skip the code if it isn't defined.
Diffstat (limited to 'ext/POSIX')
-rw-r--r--ext/POSIX/t/wrappers.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/POSIX/t/wrappers.t b/ext/POSIX/t/wrappers.t
index 01049a0628..9fefb6a68c 100644
--- a/ext/POSIX/t/wrappers.t
+++ b/ext/POSIX/t/wrappers.t
@@ -22,7 +22,7 @@ my $temp_file = $temp_fh->filename;
# 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