diff options
author | David CARLIER <devnexen@gmail.com> | 2021-02-18 15:26:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 15:26:20 (GMT) |
commit | 7be00ee64a2ced73c00ec855c7265e2ba795213d (patch) | |
tree | 541f872b3d33a7eba61357cb5c24acaf4bc950c2 /Modules/resource.c | |
parent | a3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612 (diff) | |
download | cpython-7be00ee64a2ced73c00ec855c7265e2ba795213d.zip cpython-7be00ee64a2ced73c00ec855c7265e2ba795213d.tar.gz cpython-7be00ee64a2ced73c00ec855c7265e2ba795213d.tar.bz2 |
bpo-42960: Add resource.RLIMIT_KQUEUES constant from FreeBSD (GH-24251)
Diffstat (limited to 'Modules/resource.c')
-rw-r--r-- | Modules/resource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/resource.c b/Modules/resource.c index f10a80f..0d69c29 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -480,6 +480,10 @@ resource_exec(PyObject *module) ADD_INT(module, RLIMIT_NPTS); #endif +#ifdef RLIMIT_KQUEUES + ADD_INT(module, RLIMIT_KQUEUES); +#endif + PyObject *v; if (sizeof(RLIM_INFINITY) > sizeof(long)) { v = PyLong_FromLongLong((long long) RLIM_INFINITY); |