diff lib/timespec.h @ 15332:c762e3063952

dtotimespec: new module * lib/timespec.h (dtotimespec): New decl. * lib/dtotimespec.c, modules/dtotimespec: New files.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 30 Jun 2011 15:14:25 -0700
parents d214a85acda4
children f03da5e72c61
line wrap: on
line diff
--- a/lib/timespec.h
+++ b/lib/timespec.h
@@ -65,6 +65,8 @@
   return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec;
 }
 
+struct timespec dtotimespec (double);
+
 /* Return an approximation to A, of type 'double'.  */
 static inline double
 timespectod (struct timespec a)