[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xmexample: portability fix



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1235991883 0
# Node ID 5e34a89662515c21e686e8a7906d140b470bcb99
# Parent  4dac26349877cbca0bc727286d4ddaeb190dff4b
xmexample: portability fix

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/examples/xmexample.hvm |    6 +++---
 tools/examples/xmexample.vti |    4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff -r 4dac26349877 -r 5e34a8966251 tools/examples/xmexample.hvm
--- a/tools/examples/xmexample.hvm      Mon Mar 02 11:01:06 2009 +0000
+++ b/tools/examples/xmexample.hvm      Mon Mar 02 11:04:43 2009 +0000
@@ -7,11 +7,11 @@
 #============================================================================
 
 import os, re
+
+arch_libdir = 'lib'
 arch = os.uname()[4]
-if re.search('64', arch):
+if os.uname()[0] == 'Linux' and re.search('64', arch):
     arch_libdir = 'lib64'
-else:
-    arch_libdir = 'lib'
 
 #----------------------------------------------------------------------------
 # Kernel image file.
diff -r 4dac26349877 -r 5e34a8966251 tools/examples/xmexample.vti
--- a/tools/examples/xmexample.vti      Mon Mar 02 11:01:06 2009 +0000
+++ b/tools/examples/xmexample.vti      Mon Mar 02 11:04:43 2009 +0000
@@ -7,8 +7,10 @@
 #============================================================================
 
 import os, re
+arch_libdir = 'lib'
 arch = os.uname()[4]
-arch_libdir = 'lib'
+if os.uname()[0] == 'Linux' and re.search('64', arch):
+    arch_libdir = 'lib64'
 
 #----------------------------------------------------------------------------
 # Kernel image file.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.