From b86101a58d8af871589587ab086b43700e88c8d4 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Mon, 1 Oct 2018 12:14:15 +0200 Subject: [PATCH] Disable untested/unsupported syscalls --- cpython/pyconfig.undefs.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cpython/pyconfig.undefs.h b/cpython/pyconfig.undefs.h index 68a4d0c57..27f7981bb 100644 --- a/cpython/pyconfig.undefs.h +++ b/cpython/pyconfig.undefs.h @@ -4,3 +4,28 @@ #undef HAVE_SOCKETPAIR #undef HAVE_UTIMENSAT #undef HAVE_SIGACTION + +/* Untested syscalls in emscripten */ +#undef HAVE_OPENAT +#undef HAVE_MKDIRAT +#undef HAVE_FCHOWNAT +#undef HAVE_RENAMEAT +#undef HAVE_LINKAT +#undef HAVE_SYMLINKAT +#undef HAVE_READLINKAT +#undef HAVE_FCHMODAT +#undef HAVE_DUP3 + +/* Syscalls not implemented in emscripten */ +#undef HAVE_PREADV +#undef HAVE_PWRITEV +#undef HAVE_PIPE2 +#undef HAVE_NICE + +/* Syscalls that resulted in a segfault */ +#undef HAVE_UTIMENSAT +#undef HAVE_SYS_IOCTL_H +#undef HAVE_SYS_SOCKET_H + +/* Unsupported functionality */ +#undef HAVE_PTHREAD_H