Author: vedge
Date: 2009-06-02 08:47:18 -0300 (Tue, 02 Jun 2009)
New Revision: 795

Modified:
   trunk/BSDBuild/gettimeofday.pm
Log:
+ Emul()


Modified: trunk/BSDBuild/gettimeofday.pm
===================================================================
--- trunk/BSDBuild/gettimeofday.pm      2009-06-02 10:36:34 UTC (rev 794)
+++ trunk/BSDBuild/gettimeofday.pm      2009-06-02 11:47:18 UTC (rev 795)
@@ -39,10 +39,24 @@
 EOF
 }
 
+sub Emul
+{
+       my ($os, $osrel, $machine) = @_;
+
+       if ($os eq 'linux' || $os eq 'darwin' || $os =~ /^(open|net|free)bsd/) {
+               MkDefine('HAVE_GETTIMEOFDAY', 'yes');
+               MkSaveDefine('HAVE_GETTIMEOFDAY');
+       } else {
+               MkSaveUndef('HAVE_GETTIMEOFDAY');
+       }
+       return (1);
+}
+
 BEGIN
 {
        $TESTS{'gettimeofday'} = \&Test;
        $DEPS{'gettimeofday'} = 'cc';
+       $EMUL{'gettimeofday'} = \&Emul;
        $DESCR{'gettimeofday'} = 'the gettimeofday() function';
 }
 

_______________________________________________
BSDBuild-Commits mailing list
BSDBuild-Commits@hypertriton.com
http://mail231.csoft.net/mailman/listinfo/bsdbuild-commits

Reply via email to