From 60483bd99ceb816ceaa0e32d3529b743861ffbc7 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 29 Dec 2002 06:48:21 +0000 Subject: [PATCH] Fixed compilation on LEVEL1 platform (broke since after 0.1) --- acl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acl.c b/acl.c index 5305d98..69ef98f 100644 --- a/acl.c +++ b/acl.c @@ -23,7 +23,9 @@ static PyObject* Permset_new(PyTypeObject* type, PyObject* args, PyObject *keywd typedef struct { PyObject_HEAD acl_t acl; +#ifdef HAVE_LEVEL2 int entry_id; +#endif } ACL_Object; #ifdef HAVE_LEVEL2 @@ -50,7 +52,9 @@ static PyObject* ACL_new(PyTypeObject* type, PyObject* args, PyObject *keywds) { if(newacl != NULL) { ((ACL_Object*)newacl)->acl = NULL; +#ifdef HAVEL_LEVEL2 ((ACL_Object*)newacl)->entry_id = ACL_FIRST_ENTRY; +#endif } return newacl; -- 2.39.5