diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 030b142..0f39120 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -388,10 +388,11 @@ gdbpy_solib_name (PyObject *self, PyObject *args) PyObject *str_obj; #ifdef PY_LONG_LONG unsigned PY_LONG_LONG pc; - const char *format = "K"; + /* To be compatible with Python 2.4 the format strings are not const. */ + char *format = "K"; #else unsigned long pc; - const char *format = "k"; + char *format = "k"; #endif if (!PyArg_ParseTuple (args, format, &pc)) |