[pisa-src] r2190 - trunk/libpisa/sysdep.h

Author: gherzan
Date: Sun Mar 21 13:13:50 2010
New Revision: 2190

Log:
libpisa: switch to clockid_t for clock_gettime
According to POSIX 2008, this type must be declared in <sys/types.h>,
and therefore it should also be available on the Mac.

Modified:
   trunk/libpisa/sysdep.h

Modified: trunk/libpisa/sysdep.h
==============================================================================
--- trunk/libpisa/sysdep.h      Sun Mar 21 12:46:59 2010        (r2189)
+++ trunk/libpisa/sysdep.h      Sun Mar 21 13:13:50 2010        (r2190)
@@ -30,7 +30,7 @@
  * @param ts        time structure to store the result
  * @return          0 on success, -1 on failure
  */
-static inline int clock_gettime(int clock_id, struct timespec *ts)
+static inline int clock_gettime(clockid_t clock_id, struct timespec *ts)
 {
     struct timeval tv;
     int err;

Other related posts:

  • » [pisa-src] r2190 - trunk/libpisa/sysdep.h - Mircea Gherzan