1
0
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:
Andrew Tridgell 2010-03-29 08:35:30 +11:00
parent 08faa3a43c
commit 7ed349cace
7 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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;

View File

@ -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)

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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)