From f49321c8e14b3b0a81ce45a62c80edd9528f25ce Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Mon, 8 Oct 2007 07:05:22 +0200 Subject: [PATCH] Export the libacl TEXT_* constants under Linux --- acl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/acl.c b/acl.c index a7c8310..d3852f4 100644 --- a/acl.c +++ b/acl.c @@ -1335,4 +1335,14 @@ void initposix1e(void) { PyModule_AddIntConstant(m, "ACL_OTHER", ACL_OTHER); #endif + +#ifdef HAVE_LINUX + /* Linux libacl specific acl_to_any_text constants */ + PyModule_AddIntConstant(m, "TEXT_ABBREVIATE", TEXT_ABBREVIATE); + PyModule_AddIntConstant(m, "TEXT_NUMERIC_IDS", TEXT_NUMERIC_IDS); + PyModule_AddIntConstant(m, "TEXT_SOME_EFFECTIVE", TEXT_SOME_EFFECTIVE); + PyModule_AddIntConstant(m, "TEXT_ALL_EFFECTIVE", TEXT_ALL_EFFECTIVE); + PyModule_AddIntConstant(m, "TEXT_SMART_INDENT", TEXT_SMART_INDENT); +#endif + } -- 2.39.5