diff --git a/xCAT-client-2.0/bin/pping b/xCAT-client-2.0/bin/pping index 0d464e178..13194484f 100755 --- a/xCAT-client-2.0/bin/pping +++ b/xCAT-client-2.0/bin/pping @@ -12,7 +12,9 @@ use lib "$::XCATROOT/lib/perl"; use IO::Socket::SSL; use XML::Simple; -$XML::Simple::PREFERRED_PARSER='XML::Parser'; +if ($^O =~ /^linux/i) { + $XML::Simple::PREFERRED_PARSER='XML::Parser'; +} use Data::Dumper; use IO::Handle; use IO::Select;