commit | 45054cbec0e624de3b79a795d7dfe1c64cdea934 | [log] [tgz] |
---|---|---|
author | Saurabh De <SDe@fusionio.com> | Tue Oct 09 14:46:24 2012 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 09 14:46:24 2012 -0600 |
tree | 52e02032b1904b8bb1019a1e68916a98e7142856 | |
parent | a4cfc4775cc1c8f1eb9b7ed5ffd3024d9be6747c [diff] [blame] |
solaris: fix compile error on ctime_r() On Solaris, it takes a 3rd length argument. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/os/os.h b/os/os.h index 8d2a6ae..c6da0c3 100644 --- a/os/os.h +++ b/os/os.h
@@ -142,6 +142,10 @@ 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) {