Skip to content

Commit 6124b99

Browse files
committed
Fix test failures on hurd-i386.
- Make madvise() no-op, not implemented on Hurd. - Skip threads tests, thread implementation problematic.
1 parent 7c60b45 commit 6124b99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/File/Map.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static size_t page_size() {
135135
}
136136
#endif
137137

138-
#ifdef VMS
138+
#if defined(VMS) || defined(__GNU__)
139139
#define madvise(address, length, advice) 0
140140
#endif
141141

t/20-threads.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55
use Config;
66
BEGIN {
77
# Yes, this is really necessary
8-
if ($Config{useithreads}) {
8+
if ($Config{useithreads} && $^O ne 'gnu') {
99
require threads;
1010
threads->import();
1111
require Test::More;

0 commit comments

Comments
 (0)