mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 16:58:30 +00:00
Fix the build
This commit is contained in:
parent
12ecaf8650
commit
610c951f71
10 changed files with 14 additions and 8 deletions
|
@ -59,8 +59,8 @@ textwindows int WSARecv(
|
|||
}
|
||||
if (UNLIKELY(__strace > 0) && strace_enabled(0) > 0) {
|
||||
kprintf(STRACE_PROLOGUE "WSARecv(%lu, [", s);
|
||||
DescribeIovNt(inout_lpBuffers, dwBufferCount,
|
||||
rc != -1 ? NumberOfBytesRecvd : 0);
|
||||
_DescribeIovNt(inout_lpBuffers, dwBufferCount,
|
||||
rc != -1 ? NumberOfBytesRecvd : 0);
|
||||
kprintf("], %u, [%'u], %p, %s, %p) → %d% lm\n", dwBufferCount,
|
||||
NumberOfBytesRecvd, inout_lpFlags,
|
||||
DescribeNtOverlapped(opt_inout_lpOverlapped),
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
#define MIN3(a, b, c) \
|
||||
((a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c)))
|
||||
|
|
|
@ -7,7 +7,7 @@ struct NtIovec {
|
|||
char *buf;
|
||||
};
|
||||
|
||||
void DescribeIovNt(const struct NtIovec *, uint32_t, ssize_t);
|
||||
void _DescribeIovNt(const struct NtIovec *, uint32_t, ssize_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IOVEC_H_ */
|
||||
|
|
|
@ -9,9 +9,9 @@ struct NtSecurityAttributes {
|
|||
bool32 bInheritHandle;
|
||||
};
|
||||
|
||||
const char *DescribeNtSecurityAttributes(char[32],
|
||||
const struct NtSecurityAttributes *);
|
||||
const char *_DescribeNtSecurityAttributes(char[32],
|
||||
const struct NtSecurityAttributes *);
|
||||
#define DescribeNtSecurityAttributes(x) \
|
||||
DescribeNtSecurityAttributes(alloca(32), x)
|
||||
_DescribeNtSecurityAttributes(alloca(32), x)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue