From a3085190f80d6b61f1871040665ec926f52569d5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 31 Jul 2018 20:52:36 +1000 Subject: Fix building w/ FreeBSD fileno could be a macro which can't take a void pointer. --- intern/clog/clog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/clog') diff --git a/intern/clog/clog.c b/intern/clog/clog.c index 2e5201d63b0..9a80d99fe73 100644 --- a/intern/clog/clog.c +++ b/intern/clog/clog.c @@ -470,7 +470,7 @@ void CLG_logf( static void CLG_ctx_output_set(CLogContext *ctx, void *file_handle) { ctx->output_file = file_handle; - ctx->output = fileno(file_handle); + ctx->output = fileno(ctx->output_file); #if defined(__unix__) || defined(__APPLE__) ctx->use_color = isatty(ctx->output); #endif -- cgit v1.2.3