summaryrefslogtreecommitdiff
path: root/graphics/libcaca/patches/patch-ac
blob: f1fd37ee98812cba1eb4a912f32808a923d929ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ac,v 1.2 2006/11/28 13:58:42 rillig Exp $

--- src/graphics.c.orig	2004-02-02 04:00:19.000000000 +0100
+++ src/graphics.c	2006-11-28 14:57:29.239917980 +0100
@@ -79,6 +79,9 @@ typedef unsigned char uint8_t;
 #if defined(HAVE_SYS_IOCTL_H)
 #   include <sys/ioctl.h>
 #endif
+#if defined(__sun)
+#   include <termios.h>
+#endif
 
 #include "caca.h"
 #include "caca_internals.h"
@@ -1309,7 +1312,7 @@ static void caca_handle_resize(void)
         {
             _caca_width = size.ws_col;
             _caca_height = size.ws_row;
-            resize_term(_caca_height, _caca_width);
+            resizeterm(_caca_height, _caca_width);
             wrefresh(curscr);
         }
     }