From aabe08604279edcde39646f1d7b12bd54966d956 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 16 Apr 2008 17:13:58 +0000 Subject: [PATCH] Set PREFERRED_PARSER in Linux only. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/bin/prsync | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-client-2.0/bin/prsync b/xCAT-client-2.0/bin/prsync index 52e9ca47c..dd027d505 100755 --- a/xCAT-client-2.0/bin/prsync +++ b/xCAT-client-2.0/bin/prsync @@ -7,7 +7,9 @@ BEGIN 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;