mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix the build
This commit is contained in:
parent
12ecaf8650
commit
610c951f71
10 changed files with 14 additions and 8 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#include <wctype.h>
|
||||
#include "libc/ctype.h"
|
||||
|
||||
/**
|
||||
* @fileoverview Roman Transliteration, e.g.
|
||||
|
|
|
@ -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_ */
|
||||
|
|
|
@ -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"));
|
||||
|
|
1
third_party/dlmalloc/threaded.inc
vendored
1
third_party/dlmalloc/threaded.inc
vendored
|
@ -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
|
||||
|
|
1
third_party/lua/lua.main.c
vendored
1
third_party/lua/lua.main.c
vendored
|
@ -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");
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue