Fix the build

This commit is contained in:
Justine Tunney 2024-08-26 16:44:05 -07:00
parent 12ecaf8650
commit 610c951f71
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
10 changed files with 14 additions and 8 deletions

View file

@ -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),

View file

@ -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)))

View file

@ -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_ */

View file

@ -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_ */