Fix build for systems without posix threads library

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-01-14 15:36:19 +00:00
parent f116668736
commit 8d8d19ef45
2 changed files with 7 additions and 4 deletions

View File

@@ -19,8 +19,9 @@ def build(bld):
obj = bld.create_ns3_program('main-test')
obj.source = 'main-test.cc'
obj = bld.create_ns3_program('main-test-sync')
obj.source = 'main-test-sync.cc'
if bld.env['ENABLE_THREADING']:
obj = bld.create_ns3_program('main-test-sync')
obj.source = 'main-test-sync.cc'
obj = bld.create_ns3_program('main-simple',
['node', 'internet-stack', 'onoff'])

View File

@@ -17,11 +17,13 @@
*
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
*/
#include "ns3/core-config.h"
#include "simulator.h"
#include "simulator-impl.h"
#include "default-simulator-impl.h"
#include "realtime-simulator-impl.h"
#ifdef HAVE_PTHREAD_H
# include "realtime-simulator-impl.h"
#endif
#include "scheduler.h"
#include "event-impl.h"