Skip to content

Commit b194683

Browse files
committed
lib: monkey: upgrade to v1.8.4
Signed-off-by: Eduardo Silva <[email protected]>
1 parent fdbfb8b commit b194683

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

lib/monkey/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ endif()
2323
# Monkey Version
2424
set(MK_VERSION_MAJOR 1)
2525
set(MK_VERSION_MINOR 8)
26-
set(MK_VERSION_PATCH 3)
26+
set(MK_VERSION_PATCH 4)
2727
set(MK_VERSION_STR "${MK_VERSION_MAJOR}.${MK_VERSION_MINOR}.${MK_VERSION_PATCH}")
2828

2929
# Output paths

lib/monkey/include/monkey/mk_core/external/winuio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static inline ssize_t writev(int fildes, const struct mk_iovec *iov, int iovcnt)
3636
for (i = 0; i < iovcnt; i++) {
3737
int len;
3838

39-
len = send((SOCKET)fildes, iov[i].iov_base, (int)iov[i].iov_len, 0);
39+
len = send((SOCKET)fildes, (char *)iov[i].iov_base, (int)iov[i].iov_len, 0);
4040
if (len == SOCKET_ERROR) {
4141
uint32_t err = GetLastError();
4242
// errno = win_to_posix_error(err);

lib/monkey/include/monkey/mk_core/mk_dep_unistd.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
#define STDOUT_FILENO 1
4545
#define STDERR_FILENO 2
4646
/* should be in some equivalent to <sys/types.h> */
47+
#if _MSC_VER >= 1600 /* MSVC 2010 or higher */
48+
#include <stdint.h>
49+
#else
4750
typedef __int8 int8_t;
4851
typedef __int16 int16_t;
4952
typedef __int32 int32_t;
@@ -52,5 +55,6 @@ typedef unsigned __int8 uint8_t;
5255
typedef unsigned __int16 uint16_t;
5356
typedef unsigned __int32 uint32_t;
5457
typedef unsigned __int64 uint64_t;
58+
#endif
5559

5660
#endif /* unistd.h */

0 commit comments

Comments
 (0)