summaryrefslogtreecommitdiff
path: root/lib/Vyatta/ioctl.pm
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-09-24 13:00:59 -0700
committerJames Davidson <james.davidson@vyatta.com>2012-09-24 13:00:59 -0700
commitd0a640ae240679701920cf1e6d95feebc0e65b85 (patch)
tree17389c4c908fb694909659e3472446b56df13d31 /lib/Vyatta/ioctl.pm
parentee9cb06db58d8ec1e533e3ee33b65169a41c3dfd (diff)
downloadvyatta-cfg-d0a640ae240679701920cf1e6d95feebc0e65b85.tar.gz
vyatta-cfg-d0a640ae240679701920cf1e6d95feebc0e65b85.zip
Fix get_terminal_size redefinition warning
Also squelch warnings from requiring features.ph (via ioctl.ph). Fixes bug 8387
Diffstat (limited to 'lib/Vyatta/ioctl.pm')
-rw-r--r--lib/Vyatta/ioctl.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/ioctl.pm b/lib/Vyatta/ioctl.pm
index 8ed8b93..7c745c3 100644
--- a/lib/Vyatta/ioctl.pm
+++ b/lib/Vyatta/ioctl.pm
@@ -24,7 +24,10 @@ use warnings;
use Socket;
use Socket6;
-require 'sys/ioctl.ph';
+{
+ local $^W = 0;
+ require 'sys/ioctl.ph';
+}
our @EXPORT = qw(get_terminal_size get_interface_flags);
use base qw(Exporter);