summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/lib/syslfs.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t
index 076d06f620..2955397b73 100644
--- a/t/lib/syslfs.t
+++ b/t/lib/syslfs.t
@@ -39,11 +39,7 @@ if ($^O eq 'win32' || $^O eq 'vms') {
# consume less blocks than one megabyte (assuming nobody has
# one megabyte blocks...)
-my $O_LARGEFILE;
-eval { $O_LARGEFILE = O_LARGEFILE };
-$O_LARGEFILE = 0 unless defined $O_LARGEFILE;
-
-sysopen(BIG, "big", O_WRONLY|O_CREAT|O_TRUNC|$O_LARGEFILE) or
+sysopen(BIG, "big", O_WRONLY|O_CREAT|O_TRUNC) or
do { warn "sysopen failed: $!\n"; bye };
sysseek(BIG, 1_000_000, SEEK_SET);
syswrite(BIG, "big");
@@ -72,7 +68,7 @@ print "1..8\n";
my $fail = 0;
-sysopen(BIG, "big", O_WRONLY|O_CREAT|O_TRUNC|$O_LARGEFILE) or
+sysopen(BIG, "big", O_WRONLY|O_CREAT|O_TRUNC) or
do { warn "sysopen failed: $!\n"; bye };
sysseek(BIG, 5_000_000_000, SEEK_SET);
syswrite(BIG, "big");