win32 build fixes.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun Mar 01 12:11:00 2009 +0000 (11 months ago)
changeset 424549d337cba9db
parent 4244 7c98934dcccd
child 4246 b61705329366
win32 build fixes.
src/internet-stack/wscript
     1.1 --- a/src/internet-stack/wscript	Wed Feb 25 12:27:00 2009 -0500
     1.2 +++ b/src/internet-stack/wscript	Sun Mar 01 12:11:00 2009 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4  ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
     1.5  import os
     1.6 -import urllib
     1.7 +import sys
     1.8  
     1.9  import Options
    1.10  import Logs
    1.11 @@ -45,8 +45,11 @@
    1.12          conf.report_optional_feature("nsc", "Network Simulation Cradle", False,
    1.13                                       "NSC not found (see option --with-nsc)")
    1.14  	return
    1.15 -
    1.16 -    arch = os.uname()[4]
    1.17 +    
    1.18 +    if sys.platform in ['linux2']:
    1.19 +        arch = os.uname()[4]
    1.20 +    else:
    1.21 +        arch = None
    1.22      ok = False
    1.23      if arch == 'x86_64' or arch == 'i686' or arch == 'i586' or arch == 'i486' or arch == 'i386':
    1.24          conf.env['NSC_ENABLED'] = 'yes'
    1.25 @@ -115,7 +118,7 @@
    1.26          'icmpv4.h',
    1.27          ]
    1.28  
    1.29 -    if bld.env['WITH_NSC']:        
    1.30 +    if bld.env['NSC_ENABLED']:
    1.31          obj.source.append ('nsc-tcp-socket-impl.cc')
    1.32          obj.source.append ('nsc-tcp-l4-protocol.cc')
    1.33          obj.source.append ('nsc-tcp-socket-factory-impl.cc')