summaryrefslogtreecommitdiff
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-09-16 17:36:37 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-09-16 17:36:37 +0000
commit43fd99c8f83868285422e277c7b4d7265102d41a (patch)
tree859932d9c465a71e169e4356bbd485ab3d0f0e61 /Modules/resource.c
parent13782a3359f9b308dd03562ccc6d051470e929bc (diff)
downloadcpython-git-43fd99c8f83868285422e277c7b4d7265102d41a.tar.gz
Patch #1557515: Add RLIMIT_SBSIZE.
Diffstat (limited to 'Modules/resource.c')
-rw-r--r--Modules/resource.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/resource.c b/Modules/resource.c
index fe6f3b6a25..d38c660e77 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -298,6 +298,10 @@ initresource(void)
PyModule_AddIntConstant(m, "RLIMIT_MEMLOCK", RLIMIT_MEMLOCK);
#endif
+#ifdef RLIMIT_SBSIZE
+ PyModule_AddIntConstant(m, "RLIMIT_SBSIZE", RLIMIT_SBSIZE);
+#endif
+
#ifdef RUSAGE_SELF
PyModule_AddIntConstant(m, "RUSAGE_SELF", RUSAGE_SELF);
#endif