diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-31 13:52:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-31 13:52:36 +0300 |
commit | a3085190f80d6b61f1871040665ec926f52569d5 (patch) | |
tree | 72a7636b19b64e9b402b40f325f9a49d6a72536f /intern/clog | |
parent | 36389444b03ec149fb9c013b744b9d5126f85ae2 (diff) |
Fix building w/ FreeBSD
fileno could be a macro which can't take a void pointer.
Diffstat (limited to 'intern/clog')
-rw-r--r-- | intern/clog/clog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |