mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Fix MODE=tinylinux build
This commit is contained in:
parent
9c0821def7
commit
2b67e15b3d
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/calls/internal.h"
|
#include "libc/calls/internal.h"
|
||||||
#include "libc/calls/syscall_support-nt.internal.h"
|
#include "libc/calls/syscall_support-nt.internal.h"
|
||||||
|
#include "libc/dce.h"
|
||||||
#include "libc/intrin/strace.internal.h"
|
#include "libc/intrin/strace.internal.h"
|
||||||
#include "libc/nt/createfile.h"
|
#include "libc/nt/createfile.h"
|
||||||
#include "libc/nt/enum/accessmask.h"
|
#include "libc/nt/enum/accessmask.h"
|
||||||
|
@ -83,6 +84,7 @@ dontasan dontubsan dontinstrument textwindows void WinMainStdin(void) {
|
||||||
uint32_t mode;
|
uint32_t mode;
|
||||||
char16_t pipename[64];
|
char16_t pipename[64];
|
||||||
int64_t hStdin, hWriter, hReader, hThread, hSemaphore;
|
int64_t hStdin, hWriter, hReader, hThread, hSemaphore;
|
||||||
|
if (!SupportsWindows()) return;
|
||||||
hStdin = __imp_GetStdHandle(kNtStdInputHandle);
|
hStdin = __imp_GetStdHandle(kNtStdInputHandle);
|
||||||
if (hStdin == kNtInvalidHandleValue) {
|
if (hStdin == kNtInvalidHandleValue) {
|
||||||
NTTRACE("<stdin> GetStdHandle failed");
|
NTTRACE("<stdin> GetStdHandle failed");
|
||||||
|
|
Loading…
Reference in a new issue