summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/py_security.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/ndr/py_security.c')
-rw-r--r--source4/librpc/ndr/py_security.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c
index 5311ce18f4e..08542640b99 100644
--- a/source4/librpc/ndr/py_security.c
+++ b/source4/librpc/ndr/py_security.c
@@ -16,9 +16,13 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "../lib/util/python_util.h"
+#include <Python.h>
#include "libcli/security/security.h"
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#endif
+
static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods)
{
PyObject *dict;