ia64/xen-unstable

changeset 19257:5e34a8966251

xmexample: portability fix

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 02 11:04:43 2009 +0000 (2009-03-02)
parents 4dac26349877
children 35baf43f2713
files tools/examples/xmexample.hvm tools/examples/xmexample.vti
line diff
     1.1 --- a/tools/examples/xmexample.hvm	Mon Mar 02 11:01:06 2009 +0000
     1.2 +++ b/tools/examples/xmexample.hvm	Mon Mar 02 11:04:43 2009 +0000
     1.3 @@ -7,11 +7,11 @@
     1.4  #============================================================================
     1.5  
     1.6  import os, re
     1.7 +
     1.8 +arch_libdir = 'lib'
     1.9  arch = os.uname()[4]
    1.10 -if re.search('64', arch):
    1.11 +if os.uname()[0] == 'Linux' and re.search('64', arch):
    1.12      arch_libdir = 'lib64'
    1.13 -else:
    1.14 -    arch_libdir = 'lib'
    1.15  
    1.16  #----------------------------------------------------------------------------
    1.17  # Kernel image file.
     2.1 --- a/tools/examples/xmexample.vti	Mon Mar 02 11:01:06 2009 +0000
     2.2 +++ b/tools/examples/xmexample.vti	Mon Mar 02 11:04:43 2009 +0000
     2.3 @@ -7,8 +7,10 @@
     2.4  #============================================================================
     2.5  
     2.6  import os, re
     2.7 +arch_libdir = 'lib'
     2.8  arch = os.uname()[4]
     2.9 -arch_libdir = 'lib'
    2.10 +if os.uname()[0] == 'Linux' and re.search('64', arch):
    2.11 +    arch_libdir = 'lib64'
    2.12  
    2.13  #----------------------------------------------------------------------------
    2.14  # Kernel image file.