diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-29 15:16:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 15:16:23 +0100 |
commit | 5776663675b48f011d428a5874cc3c79d1deb59e (patch) | |
tree | 13df320ed9473e63a92b8eed64a4d67c58f7d089 /Modules/resource.c | |
parent | 350526105fa9b131d8b941ae753378b741dabb2f (diff) | |
download | cpython-git-5776663675b48f011d428a5874cc3c79d1deb59e.tar.gz |
bpo-42029: Remove IRIX code (GH-23023)
IRIX code was slowy removed in Python 2.4 (--with-sgi-dl), Python 3.3
(Irix threads), and Python 3.7.
Diffstat (limited to 'Modules/resource.c')
-rw-r--r-- | Modules/resource.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/resource.c b/Modules/resource.c index ddbf80be9c..4f5dcf8438 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -313,13 +313,10 @@ resource_getpagesize_impl(PyObject *module) long pagesize = 0; #if defined(HAVE_GETPAGESIZE) pagesize = getpagesize(); -#elif defined(HAVE_SYSCONF) -#if defined(_SC_PAGE_SIZE) +#elif defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE) pagesize = sysconf(_SC_PAGE_SIZE); #else - /* Irix 5.3 has _SC_PAGESIZE, but not _SC_PAGE_SIZE */ - pagesize = sysconf(_SC_PAGESIZE); -#endif +# error "unsupported platform: resource.getpagesize()" #endif return pagesize; } |