projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f05e0
)
utils/os_socket: Define ssize_t on windows.
author
Rafael Antognolli
<rafael.antognolli@intel.com>
Mon, 16 Dec 2019 19:07:42 +0000
(11:07 -0800)
committer
Rafael 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
patch
|
blob
|
history
diff --git
a/src/util/os_socket.h
b/src/util/os_socket.h
index 0e413ef353e37f51503bd9818ecacd5fb77ccdb7..0d6f8749176d0b25a3bdaed809efac882d98eabf 100644
(file)
--- a/
src/util/os_socket.h
+++ b/
src/util/os_socket.h
@@
-10,6
+10,10
@@
#include <stdio.h>
#include <stdbool.h>
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
#ifdef __cplusplus
extern "C" {