Avoid using a utility header for Python replacements included in Samba,
[kai/samba-autobuild/.git] / source4 / librpc / ndr / py_security.c
index 5311ce18f4e0b2b5e43332ecbbed4df58b363bbb..08542640b99dbd861962f224943d3a862a180007 100644 (file)
    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;