[Bf-blender-cvs] [a3085190f80] master: Fix building w/ FreeBSD

Campbell Barton noreply at git.blender.org
Tue Jul 31 12:53:28 CEST 2018


Commit: a3085190f80d6b61f1871040665ec926f52569d5
Author: Campbell Barton
Date:   Tue Jul 31 20:52:36 2018 +1000
Branches: master
https://developer.blender.org/rBa3085190f80d6b61f1871040665ec926f52569d5

Fix building w/ FreeBSD

fileno could be a macro which can't take a void pointer.

===================================================================

M	intern/clog/clog.c

===================================================================

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



More information about the Bf-blender-cvs mailing list