Add fio_socklen_t
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index a24004b584e749ea2d830481e3ea3e8a5584e1f7..189041f5546c20e703deaeb499683963fd5a6b1f 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -115,6 +115,10 @@ typedef unsigned long os_cpu_mask_t;
 #define FIO_MAX_JOBS           2048
 #endif
 
+#ifndef FIO_OS_HAVE_SOCKLEN_T
+typedef socklen_t fio_socklen_t;
+#endif
+
 #ifdef FIO_USE_GENERIC_SWAP
 static inline uint16_t fio_swap16(uint16_t val)
 {