Merge branch 'master' into gfio
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index dc798c373a751b6f41f814448cfa95f2a5300439..e2c188f1235cc5c0e85d280582ba0ed0a4b18483 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -142,6 +142,10 @@ typedef unsigned long os_cpu_mask_t;
 typedef socklen_t fio_socklen_t;
 #endif
 
+#ifndef FIO_OS_HAS_CTIME_R
+#define os_ctime_r(x, y, z)     ctime_r((x), (y))
+#endif
+
 #ifdef FIO_USE_GENERIC_SWAP
 static inline uint16_t fio_swap16(uint16_t val)
 {