[Ns-bugs] [Bug 296] real time scheduler not compiling in MingW
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Sat Sep 6 15:00:57 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=296
------- Comment #8 from gjcarneiro at gmail.com 2008-09-06 18:00 -------
OK, two more data points:
1. Removing the #include <sched.h> makes the code compile both in mingw and
linux. Apparently sched.h is only used for some code inside #if 0 ... #endif.
2. In wall-clock-synchronizer.h you use #ifdef CLOCK_REALTIME. However, since
that header file doesn't include <time.h> won't CLOCK_REALTIME be always
undefined (unless by luck whoever includes wall-clock-synchronizer.h had
already included time.h first) ?
3. The "#ifdef CLOCK_REALTIME"'ed methods, TimespecToNs and TimespecAdd are
protected and currently unused, so I reiterate my suggestion to remove them
completely; they are causing portability problems and have no use.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list