diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-utils.c b/gdb/python/py-utils.c index 7c7c5ca..bbbdef4 100644 --- a/gdb/python/py-utils.c +++ b/gdb/python/py-utils.c @@ -436,7 +436,8 @@ gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object) int result; Py_INCREF (object); - result = PyModule_AddObject (module, name, object); + /* Python 2.4 did not have a 'const' here. */ + result = PyModule_AddObject (module, (char *) name, object); if (result < 0) Py_DECREF (object); return result; |