summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/talloc/pytalloc.c2
-rw-r--r--libcli/nbt/pynbt.c2
-rw-r--r--source4/lib/ldb-samba/pyldb.c2
-rw-r--r--source4/lib/ldb/pyldb.c2
-rw-r--r--source4/lib/messaging/pymessaging.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 457358ed8f..a8c46c96f8 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -21,6 +21,8 @@
#include <talloc.h>
#include <pytalloc.h>
+void inittalloc(void);
+
/* print a talloc tree report for a talloc python object */
static PyObject *py_talloc_report_full(PyObject *self, PyObject *args)
{
diff --git a/libcli/nbt/pynbt.c b/libcli/nbt/pynbt.c
index 452ae3a1a2..9251ecfc42 100644
--- a/libcli/nbt/pynbt.c
+++ b/libcli/nbt/pynbt.c
@@ -24,6 +24,8 @@
#include "../libcli/nbt/libnbt.h"
#include "lib/events/events.h"
+void initnetbios(void);
+
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
diff --git a/source4/lib/ldb-samba/pyldb.c b/source4/lib/ldb-samba/pyldb.c
index 9345145af1..cce653e20a 100644
--- a/source4/lib/ldb-samba/pyldb.c
+++ b/source4/lib/ldb-samba/pyldb.c
@@ -29,6 +29,8 @@
#include "lib/ldb-samba/ldif_handlers.h"
#include "auth/pyauth.h"
+void init_ldb(void);
+
static PyObject *pyldb_module;
static PyObject *py_ldb_error;
staticforward PyTypeObject PySambaLdb;
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 5446aafb92..71720d60e0 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -30,6 +30,8 @@
#include "ldb_private.h"
#include "pyldb.h"
+void initldb(void);
+
/* There's no Py_ssize_t in 2.4, apparently */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
typedef int Py_ssize_t;
diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c
index 20e1d76164..9854f4f95e 100644
--- a/source4/lib/messaging/pymessaging.c
+++ b/source4/lib/messaging/pymessaging.c
@@ -33,6 +33,8 @@
#include "librpc/rpc/dcerpc.h"
#include "librpc/gen_ndr/server_id.h"
+void initmessaging(void);
+
extern PyTypeObject messaging_Type;
static bool server_id_from_py(PyObject *object, struct server_id *server_id)