libnix series (apply with patch -p1 in the source root, after the SDK
series in ../ which is applied with patch -p2, 0017 skipped):

0101-configure-morphos-host.diff
    Hand-port of SDK 0001 to the generated ./configure (autoconf is not
    installed in this WSL): *-*-morphos* -> ac_sys_system=MorphOS,
    MACHDEP=morphos, _host_ident=$host_cpu.  Also restores upstream's
    as_fn_error that ~/python3147/configure had replaced by an echo.
0102-posixmodule-libnix-environ.diff
    os.environ built by __morphos_get_environ() (libmorphoscompat) from
    dos.library local + ENV: variables; libnix has no environ.
0103-socketmodule-libnix-inet.diff
    SDK 0009 defines inet_pton/inet_ntop inside socketmodule.c; under
    libnix they come from libmorphoscompat instead.
0104-libnix-type-clashes-fcntl-scrypt.diff
    _pickle.c: libnix <unistd.h> pulls in <exec/types.h> (LONG, FLOAT,
    GLOBAL=extern) -> rename like on Windows.
    fcntlmodule.c: no F_SETLK/struct flock -> flock()/lockf() raise
    OSError(ENOSYS).
    _hashopenssl.c: SDK OpenSSL 4.0.0 is built no-scrypt -> honour
    OPENSSL_NO_SCRYPT.

The build also runs "make regen-global-objects" (needed by SDK 0005's
_Py_DECLARE_STR(latin_1)); the regenerated headers are not in the diffs.
0108-socketmodule-libnix-closesocket.diff
    libnix: sockets are bsdsocket descriptors, not libnix fds. close()
    on a socket closed an unrelated libnix file with the same number
    (EBADF on the next write, socket leaked). Use CloseSocket() and
    Dup2Socket().
