From 2a4f781aa11f77b9a14c14e1299179686f97c2c1 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Sun, 30 Oct 2016 01:41:20 +0200 Subject: [PATCH] Workaround for Android --- lib/Stream/Buffered/File.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Stream/Buffered/File.pm b/lib/Stream/Buffered/File.pm index 53bf21c..4971a37 100644 --- a/lib/Stream/Buffered/File.pm +++ b/lib/Stream/Buffered/File.pm @@ -3,11 +3,13 @@ use strict; use warnings; use base 'Stream::Buffered'; +use File::Spec; use IO::File; sub new { my $class = shift; + local $ENV{TMPDIR} = File::Spec->tmpdir; my $fh = IO::File->new_tmpfile; $fh->binmode;