diff options
Diffstat (limited to 'navit/debug.c')
-rw-r--r-- | navit/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/debug.c b/navit/debug.c index 37b22f00c..972fc0c19 100644 --- a/navit/debug.c +++ b/navit/debug.c @@ -36,7 +36,7 @@ int debug_level=0,segv_level=0; static int dummy; static GHashTable *debug_hash; -static char *gdb_program; +static const char *gdb_program; static FILE *debug_fp; @@ -44,6 +44,7 @@ static void sigsegv(int sig) { #if defined(_WIN32) || defined(__CEGCC__) #else +#include <unistd.h> char buffer[256]; if (segv_level > 1) sprintf(buffer, "gdb -ex bt %s %d", gdb_program, getpid()); |