mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
pytalloc: allow for using a system libtalloc-dev with pytalloc
When we have a system talloc library, we still need to grab pytalloc.h from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise we'll get the in-tree talloc.h which may not be compatible with the system talloc.h So we need to give the path to pytalloc.h
This commit is contained in:
parent
08faa3a43c
commit
7ed349cace
@ -20,7 +20,7 @@
|
||||
#include <Python.h>
|
||||
#include "replace.h"
|
||||
#include <talloc.h>
|
||||
#include <pytalloc.h>
|
||||
#include "pytalloc.h"
|
||||
|
||||
/**
|
||||
* Simple dealloc for talloc-wrapping PyObjects
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define _PYCREDENTIALS_H_
|
||||
|
||||
#include "auth/credentials/credentials.h"
|
||||
#include "pytalloc.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyCredentials;
|
||||
PyAPI_DATA(PyTypeObject) PyCredentialCacheContainer;
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "auth/gensec/gensec.h"
|
||||
#include "libcli/util/pyerrors.h"
|
||||
#include "scripting/python/modules.h"
|
||||
#include "pytalloc.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
#include <tevent.h>
|
||||
|
||||
static PyObject *py_get_name_by_authtype(PyObject *self, PyObject *args)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef _PYAUTH_H_
|
||||
#define _PYAUTH_H_
|
||||
|
||||
#include "pytalloc.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
#include "auth/session.h"
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyAuthSession;
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "libcli/util/pyerrors.h"
|
||||
#include "lib/registry/registry.h"
|
||||
#include "scripting/python/modules.h" /* for py_iconv_convenience() */
|
||||
#include <pytalloc.h>
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
#include "auth/credentials/pycredentials.h"
|
||||
#include "param/pyparam.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "includes.h"
|
||||
#include "param/param.h"
|
||||
#include "param/loadparm.h"
|
||||
#include "pytalloc.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
|
||||
/* There's no Py_ssize_t in 2.4, apparently */
|
||||
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "includes.h"
|
||||
#include "param/param.h"
|
||||
#include "param/loadparm.h"
|
||||
#include "pytalloc.h"
|
||||
#include "lib/talloc/pytalloc.h"
|
||||
|
||||
#define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user