aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmodbus/ssize_t.diff
blob: e2ba0c3dacacd5cc9cc8ab1ba0b8b5062b45ad21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/modbus-private.h b/src/modbus-private.h
index ea83187..db5a3dc 100644
--- a/src/modbus-private.h
+++ b/src/modbus-private.h
@@ -14,7 +14,9 @@
 #else
 # include "stdint.h"
 # include <time.h>
+# ifndef ssize_t
 typedef int ssize_t;
+# endif
 #endif
 // clang-format on
 #include <config.h>