utils/os_socket: Define ssize_t on windows.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 16 Dec 2019 19:07:42 +0000 (11:07 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 16 Dec 2019 20:35:22 +0000 (20:35 +0000)
Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/util/os_socket.h

index 0e413ef353e37f51503bd9818ecacd5fb77ccdb7..0d6f8749176d0b25a3bdaed809efac882d98eabf 100644 (file)
 
 #include <stdio.h>
 #include <stdbool.h>
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
 
 #ifdef __cplusplus
 extern "C" {