bug 316: make nsc compilation conditional again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user