diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e8c15a9473..d137d63d09 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8522,7 +8522,7 @@ os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd) do { Py_BEGIN_ALLOW_THREADS -#ifdef HAVE_MKFIFOAT +#if defined(HAVE_MKFIFOAT) && ! defined(__ANDROID__) if (dir_fd != DEFAULT_DIR_FD) result = mkfifoat(dir_fd, path->narrow, mode); else diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 7982139822..d89a11899b 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -971,7 +971,7 @@ fill_siginfo(siginfo_t *si) } #endif -#ifdef HAVE_SIGWAITINFO +#if defined(HAVE_SIGWAITINFO) && ! defined(__ANDROID__) /*[clinic input] signal.sigwaitinfo @@ -1010,7 +1010,7 @@ signal_sigwaitinfo(PyObject *module, PyObject *sigset) #endif /* #ifdef HAVE_SIGWAITINFO */ -#ifdef HAVE_SIGTIMEDWAIT +#if defined(HAVE_SIGTIMEDWAIT) && ! defined(__ANDROID__) /*[clinic input] signal.sigtimedwait @@ -1136,8 +1136,10 @@ static PyMethodDef signal_methods[] = { SIGNAL_PTHREAD_SIGMASK_METHODDEF SIGNAL_SIGPENDING_METHODDEF SIGNAL_SIGWAIT_METHODDEF +#ifndef __ANDROID__ SIGNAL_SIGWAITINFO_METHODDEF SIGNAL_SIGTIMEDWAIT_METHODDEF +#endif {NULL, NULL} /* sentinel */ };