Fix building w/ FreeBSD

fileno could be a macro which can't take a void pointer.
This commit is contained in:
Campbell Barton 2018-07-31 20:52:36 +10:00
parent 36389444b0
commit a3085190f8

@ -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