CROSS_TO_WASM build fix

A couple of option processing functions, one of which was called in file.c, were
recently added to sys/unix/unixmain.c, but the wasm build does not include unixmain.c,
it uses sys/libnh/libnhmain.c.

Transcribe the functions into sys/libnh/libnhmain.c.

Also, do not #include "wintty.h" for NOTTYGRAPHICS builds.
This commit is contained in:
nhmall
2025-01-05 05:42:24 -05:00
parent ffadd254d7
commit a7152ad54e
2 changed files with 29 additions and 0 deletions

View File

@@ -11,7 +11,9 @@
#define NEED_VARARGS
#include "hack.h"
#if defined(TTY_GRAPHICS) && !defined(NOTTYGRAPHICS)
#include "wintty.h"
#endif
/*
* The distinctions here are not BSD - rest but rather USG - rest, as