[Xorp-cvs] SF.net SVN: xorp:[11639] trunk/xorp/site_scons/config/allconfig.py
bms_fbsd at users.sourceforge.net
bms_fbsd at users.sourceforge.net
Sat Nov 28 22:20:10 PST 2009
Revision: 11639
http://xorp.svn.sourceforge.net/xorp/?rev=11639&view=rev
Author: bms_fbsd
Date: 2009-11-29 06:20:09 +0000 (Sun, 29 Nov 2009)
Log Message:
-----------
Add a check for FreeBSD's CLOCK_MONOTONIC_FAST, mostly for testing
callgrind. There is a small decrease in syscall time if clock_gettime()
is called with this slightly faster clock ID.
Modified Paths:
--------------
trunk/xorp/site_scons/config/allconfig.py
Modified: trunk/xorp/site_scons/config/allconfig.py
===================================================================
--- trunk/xorp/site_scons/config/allconfig.py 2009-11-29 05:05:45 UTC (rev 11638)
+++ trunk/xorp/site_scons/config/allconfig.py 2009-11-29 06:20:09 UTC (rev 11639)
@@ -112,6 +112,11 @@
has_clock_monotonic = conf.CheckDeclaration('CLOCK_MONOTONIC', '#include <time.h>')
if has_clock_monotonic:
conf.Define('HAVE_CLOCK_MONOTONIC') # autoconf compat
+ # BSD extension
+ has_clock_monotonic_fast = conf.CheckDeclaration(
+ 'CLOCK_MONOTONIC_FAST', '#include <time.h>')
+ if has_clock_monotonic_fast:
+ conf.Define('HAVE_CLOCK_MONOTONIC_FAST')
has_struct_timespec = conf.CheckType('struct timespec', includes='#include <time.h>')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Xorp-cvs
mailing list