bug 316: make nsc compilation conditional again

This commit is contained in:
Mathieu Lacage
2008-09-08 09:22:45 -07:00
parent 8bb361bcba
commit 320dcbbfee
2 changed files with 15 additions and 7 deletions

View File

@@ -30,8 +30,10 @@
#include "udp-socket-factory-impl.h"
#include "tcp-socket-factory-impl.h"
#include "ipv4-impl.h"
#ifdef NETWORK_SIMULATION_CRADLE
#include "nsc-tcp-socket-factory-impl.h"
#include "nsc-tcp-l4-protocol.h"
#endif
namespace ns3 {
@@ -87,7 +89,7 @@ AddInternetStack (Ptr<Node> node)
AddTcpStack (node);
}
#ifdef NETWORK_SIMULATION_CRADLE
static void
AddNscStack(Ptr<Node> node, const std::string &soname)
{
@@ -111,5 +113,11 @@ AddNscInternetStack (Ptr<Node> node, const std::string &soname)
AddUdpStack (node);
AddNscStack (node, soname);
}
#else
void
AddNscInternetStack (Ptr<Node> node, const std::string &soname)
{
NS_FATAL_ERROR ("NSC Not enabled on this platform.");
}
#endif
}//namespace ns3