[svn:parrot] r43521 - trunk/config/init/hints

darbelo at svn.parrot.org darbelo at svn.parrot.org
Wed Jan 20 23:31:55 UTC 2010


Author: darbelo
Date: Wed Jan 20 23:31:52 2010
New Revision: 43521
URL: https://trac.parrot.org/parrot/changeset/43521

Log:
Parrot will only use clock_gettime() to obtain timin ingormation if _POSIX_TIMERS is defined. OpenBSD provides clock_gettime() but doesn't #define _POSIX_TIMERS. Rather than add to the macro soup in that file let's fake it on the hints file and avoid producing sub-optimal timing info.

Modified:
   trunk/config/init/hints/openbsd.pm

Modified: trunk/config/init/hints/openbsd.pm
==============================================================================
--- trunk/config/init/hints/openbsd.pm	Wed Jan 20 22:58:11 2010	(r43520)
+++ trunk/config/init/hints/openbsd.pm	Wed Jan 20 23:31:52 2010	(r43521)
@@ -37,7 +37,7 @@
         $conf->data->set( as => 'as -mregnames' );
     }
 
-    $conf->data->set( clock_best => '-DCLOCK_BEST=CLOCK_MONOTONIC' );
+    $conf->data->set( clock_best => '-D_POSIX_TIMERS -DCLOCK_BEST=CLOCK_MONOTONIC' );
 }
 
 1;


More information about the parrot-commits mailing list