summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-01-07 14:33:25 -0800
committerTim Prouty <tprouty@samba.org>2009-01-07 15:03:16 -0800
commit61a23c5eea2203721a70a4ad41bfdc6cd1d6a2a7 (patch)
treefc1a9fafce0305de010dcb4e45ceb07f1c318314 /source4/librpc
parentbed05fbf2e73d4e637e9267c2205feae7ae6440e (diff)
downloadsamba-61a23c5eea2203721a70a4ad41bfdc6cd1d6a2a7.tar.gz
samba-61a23c5eea2203721a70a4ad41bfdc6cd1d6a2a7.tar.bz2
samba-61a23c5eea2203721a70a4ad41bfdc6cd1d6a2a7.zip
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/ndr/py_security.c1
-rw-r--r--source4/librpc/rpc/pyrpc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c
index 73837b67ef..5311ce18f4 100644
--- a/source4/librpc/ndr/py_security.c
+++ b/source4/librpc/ndr/py_security.c
@@ -16,6 +16,7 @@
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 "libcli/security/security.h"
static void PyType_AddMethods(PyTypeObject *type, PyMethodDef *methods)
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index b841fdad65..1f29ad143e 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -18,7 +18,7 @@
*/
#include "includes.h"
-#include <Python.h>
+#include "../lib/util/python_util.h"
#include <structmember.h>
#include "librpc/rpc/pyrpc.h"
#include "librpc/rpc/dcerpc.h"