From 820b6e905cd19f607180abadff4b35596d48dd2f Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 1 Apr 2012 04:03:08 +0000 Subject: [PATCH] make even Errno.pm optional --- check.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/check.pl b/check.pl index 69751f8..77d09b5 100644 --- a/check.pl +++ b/check.pl @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.pl,v 1.29 2012/03/31 18:47:20 tg Exp $ +# $MirOS: src/bin/mksh/check.pl,v 1.30 2012/04/01 04:03:08 tg Exp $ # $OpenBSD: th,v 1.13 2006/05/18 21:27:23 miod Exp $ #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 @@ -152,7 +152,11 @@ # s tag can be used several times. #use POSIX qw(EINTR); -use Errno; +BEGIN { + unless (eval "use Errno") { + warn "couldn't load Errno: $@"; + } +} use Getopt::Std; use Config;