diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c index 8758a7ab0a..08d91e0afa 100644 --- a/libgimpbase/gimputils.c +++ b/libgimpbase/gimputils.c @@ -1324,7 +1324,12 @@ gimp_stack_trace_print (const gchar *prog_name, eintr_count = 0; if (! stack_printed) { -#if defined(G_OS_WIN32) || defined(SYS_gettid) || defined(HAVE_THR_SELF) +#if defined(PLATFORM_OSX) + if (stream) + g_fprintf (stream, + "\n# Stack traces obtained from PID %d - Thread 0x%lx #\n\n", + pid, tid); +#elif defined(G_OS_WIN32) || defined(SYS_gettid) || defined(HAVE_THR_SELF) if (stream) g_fprintf (stream, "\n# Stack traces obtained from PID %d - Thread %lu #\n\n", @@ -1333,7 +1338,11 @@ gimp_stack_trace_print (const gchar *prog_name, if (trace) { gtrace = g_string_new (NULL); -#if defined(G_OS_WIN32) || defined(SYS_gettid) || defined(HAVE_THR_SELF) +#if defined(PLATFORM_OSX) + g_string_printf (gtrace, + "\n# Stack traces obtained from PID %d - Thread 0x%lx #\n\n", + pid, tid); +#elif defined(G_OS_WIN32) || defined(SYS_gettid) || defined(HAVE_THR_SELF) g_string_printf (gtrace, "\n# Stack traces obtained from PID %d - Thread %lu #\n\n", pid, tid);