Files
pkgsrc-ng/net/rtorrent/patches/patch-af
2013-09-26 17:14:40 +02:00

26 lines
814 B
Plaintext

$NetBSD: patch-af,v 1.4 2011/08/01 13:12:38 wiz Exp $
Make this work with "ncurses" 5.8. Patch taken from here.
http://www.mail-archive.com/arch-general@archlinux.org/msg18728.html
--- src/display/canvas.h.orig 2011-04-07 13:36:10.000000000 +0100
+++ src/display/canvas.h 2011-07-30 16:40:10.000000000 +0100
@@ -37,6 +37,7 @@
#ifndef RTORRENT_DISPLAY_CANVAS_H
#define RTORRENT_DISPLAY_CANVAS_H
+#include <cstdarg>
#include <string>
#include <vector>
@@ -48,7 +49,7 @@
public:
typedef std::vector<Attributes> attributes_list;
- Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
+ Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
~Canvas() { delwin(m_window); }
void refresh() { wnoutrefresh(m_window); }