diff options
-rw-r--r-- | src/external/python.m4 | 2 | ||||
-rw-r--r-- | src/util/sss_python.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/external/python.m4 b/src/external/python.m4 index e93f85009..ac427268d 100644 --- a/src/external/python.m4 +++ b/src/external/python.m4 @@ -63,7 +63,7 @@ AC_DEFUN([AM_CHECK_PYTHON_COMPAT], LIBS="$LIBS $PYTHON_LIBS" AC_CHECK_FUNCS([PyErr_NewExceptionWithDoc]) - AC_CHECK_DECLS([PyModule_AddIntMacro, PyUnicode_FromString], [], [], [[#include <Python.h>]]) + AC_CHECK_DECLS([PyUnicode_FromString], [], [], [[#include <Python.h>]]) CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" diff --git a/src/util/sss_python.h b/src/util/sss_python.h index 56c25ebb7..5521aa5cf 100644 --- a/src/util/sss_python.h +++ b/src/util/sss_python.h @@ -32,11 +32,6 @@ PyObject *sss_python_unicode_from_string(const char *u); PyObject * sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict); -/* PyModule_AddIntMacro() compatibility */ -#if !HAVE_DECL_PYMODULE_ADDINTMACRO -#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, sss_py_const_p(char, #c), c) -#endif - /* Convenience macros */ #define TYPE_READY(module, type, name) do { \ if (PyType_Ready(&type) < 0) \ |