Commit 7b6756af authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Jehan

libgimpbase: Cast fd to FILE* before calling fileno

It is required if the system implements fileno as a macro doing direct
struct member access.
parent 4190f400
......@@ -1240,7 +1240,7 @@ gimp_print_stack_trace (const gchar *prog_name,
* In some cases, this is necessary, especially during
* segfault-type crashes.
backtrace_symbols_fd (bt_buf, n_symbols, fileno (fd));
backtrace_symbols_fd (bt_buf, n_symbols, fileno ((FILE *) fd));
stack_printed = (n_symbols > 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment