]> git.pld-linux.org Git - packages/ruby-ncurses.git/commitdiff
add ruby-ncurses-fix-missing-tz-prototypes.patch
authorElan Ruusamäe <glen@delfi.ee>
Sun, 20 Mar 2016 12:23:14 +0000 (14:23 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 20 Mar 2016 12:23:14 +0000 (14:23 +0200)
patch from fedora repo

ruby-ncurses-fix-missing-tz-prototypes.patch [new file with mode: 0644]
ruby-ncurses.spec

diff --git a/ruby-ncurses-fix-missing-tz-prototypes.patch b/ruby-ncurses-fix-missing-tz-prototypes.patch
new file mode 100644 (file)
index 0000000..c8c4ed9
--- /dev/null
@@ -0,0 +1,34 @@
+From d3e59724601b2aabb231f2e12e16ebf00ba79ab1 Mon Sep 17 00:00:00 2001
+From: Caleb Marble <cm@marblenix.com>
+Date: Sun, 2 Mar 2014 13:53:05 -0600
+Subject: [PATCH] modified:   ext/ncurses/ncurses_wrap.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes the following compiler error:
+
+ext/ncurses/ncurses_wrap.c: In function ‘rbncurshelper_nonblocking_wgetch’:
+ext/ncurses/ncurses_wrap.c:807:12: error: variable ‘tz’ has initializer but incomplete type
+     struct timezone tz = {0,0};
+
+Also closes #6
+---
+ ncurses_wrap.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ncurses_wrap.h b/ncurses_wrap.h
+index 85da4f8..92583c0 100644
+--- a/ncurses_wrap.h
++++ b/ncurses_wrap.h
+@@ -84,6 +84,7 @@ int close(int);
+ #endif
+ #include <ruby.h>
++#include <sys/time.h>
+ extern VALUE mNcurses;  /* module Ncurses */
+ extern VALUE cWINDOW;   /* class Ncurses::WINDOW */
+-- 
+1.9.1
+
index 4cb6ad027afa4720fea49c14a540adfaeffea345..6d6bb1301dd2777ad046cdb2512e2bacd51747d5 100644 (file)
@@ -10,6 +10,7 @@ Source0:      https://sourceforge.net/projects/ncurses-ruby.berlios/files/%{pkgname}-
 # Source0-md5: 63fd3d09a51cdd745e1ed37f85621ea2
 Patch0:                %{name}-utf8.patch
 Patch1:                format-security.patch
+Patch2:                ruby-ncurses-fix-missing-tz-prototypes.patch
 URL:           https://sourceforge.net/projects/ncurses-ruby.berlios/
 BuildRequires: ncurses-devel
 BuildRequires: rpm-rubyprov
@@ -67,6 +68,7 @@ Dokumentacji w formacie ri dla %{pkgname}.
 %setup -q -n %{pkgname}-ruby-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 ruby extconf.rb \
This page took 0.074468 seconds and 4 git commands to generate.