Ticket #3643: patch-src_cons.handler.c

File patch-src_cons.handler.c, 641 bytes (added by woodsb02, 8 years ago)

Patch to fix build of mc 4.8.17 on FreeBSD (replace min with MIN in src/cons.handler.c)

Line 
1Created by: Ben Woods <woodsb02@FreeBSD.org> (FreeBSD port maintainer)
2Logged upstream: https://www.midnight-commander.org/ticket/3643
3
4--- src/cons.handler.c.orig     2016-05-11 09:47:32 UTC
5+++ src/cons.handler.c
6@@ -408,7 +408,7 @@ show_console_contents_freebsd (int start
7     for (line = begin_line; line <= end_line; line++)
8     {
9         tty_gotoyx (starty + line - begin_line, 0);
10-        for (col = 0; col < min (COLS, screen_info.mv_csz); col++)
11+        for (col = 0; col < MIN (COLS, screen_info.mv_csz); col++)
12         {
13             c = screen_shot.buf[line * screen_info.mv_csz + col] & 0xFF;
14             tty_print_char (c);