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

@ -17,6 +17,7 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include "libc/ctype.h"
/**
* @fileoverview Roman Transliteration, e.g.

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

View file

@ -1568,7 +1568,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) {
int rc;
char *sb = 0;
sqlite3 *db = 0;
/* size_t sblen = 0; */
size_t sblen = 0;
struct Asset a = {0};
sqlite3_stmt *stmt = 0;
bool namestate = false;
@ -1614,7 +1614,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) {
namestate = true;
CHECK_SYS(appendf(
&a.data.p, "\"%s\":[\n",
"wut"/* EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0) */));
EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0)));
} else {
// name repeated
CHECK_SYS(appends(&a.data.p, ",\n"));

View file

@ -25,6 +25,7 @@
#include "libc/thread/thread.h"
#include "libc/thread/threads.h"
#include "libc/errno.h"
#include "libc/calls/struct/cpuset.h"
#include "third_party/dlmalloc/dlmalloc.h"
#if !FOOTERS || !MSPACES

View file

@ -50,6 +50,7 @@
#include "third_party/lua/lrepl.h"
#include "third_party/lua/lualib.h"
#include "third_party/lua/lunix.h"
#include "libc/cosmo.h"
#include "libc/mem/leaks.h"
__static_yoink("lua_notice");

View file

@ -31,6 +31,7 @@
#include "libc/calls/struct/termios.h"
#include "libc/calls/struct/timespec.h"
#include "libc/calls/termios.h"
#include "libc/cosmo.h"
#include "libc/ctype.h"
#include "libc/dce.h"
#include "libc/dos.h"

View file

@ -19,6 +19,7 @@
#include "libc/calls/struct/timespec.h"
#include "libc/mem/mem.h"
#include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h"
#include "libc/thread/thread.h"
#define ALLOCATIONS 1000