wok-6.x annotate ruby-ncurses/stuff/ruby-ncurses-fix-missing-tz-prototypes.patch @ rev 21146
updated git (2.17.1 -> 2.21.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 28 16:06:18 2019 +0100 (2019-03-28) |
parents | |
children |
rev | line source |
---|---|
paul@16777 | 1 From d3e59724601b2aabb231f2e12e16ebf00ba79ab1 Mon Sep 17 00:00:00 2001 |
paul@16777 | 2 From: Caleb Marble <cm@marblenix.com> |
paul@16777 | 3 Date: Sun, 2 Mar 2014 13:53:05 -0600 |
paul@16777 | 4 Subject: [PATCH] modified: ext/ncurses/ncurses_wrap.h |
paul@16777 | 5 MIME-Version: 1.0 |
paul@16777 | 6 Content-Type: text/plain; charset=UTF-8 |
paul@16777 | 7 Content-Transfer-Encoding: 8bit |
paul@16777 | 8 |
paul@16777 | 9 Fixes the following compiler error: |
paul@16777 | 10 |
paul@16777 | 11 ext/ncurses/ncurses_wrap.c: In function ‘rbncurshelper_nonblocking_wgetch’: |
paul@16777 | 12 ext/ncurses/ncurses_wrap.c:807:12: error: variable ‘tz’ has initializer but incomplete type |
paul@16777 | 13 struct timezone tz = {0,0}; |
paul@16777 | 14 |
paul@16777 | 15 Also closes #6 |
paul@16777 | 16 --- |
paul@16777 | 17 ncurses_wrap.h | 1 + |
paul@16777 | 18 1 file changed, 1 insertion(+) |
paul@16777 | 19 |
paul@16777 | 20 diff --git a/ncurses_wrap.h b/ncurses_wrap.h |
paul@16777 | 21 index 85da4f8..92583c0 100644 |
paul@16777 | 22 --- a/ncurses_wrap.h |
paul@16777 | 23 +++ b/ncurses_wrap.h |
paul@16777 | 24 @@ -84,6 +84,7 @@ int close(int); |
paul@16777 | 25 #endif |
paul@16777 | 26 |
paul@16777 | 27 #include <ruby.h> |
paul@16777 | 28 +#include <sys/time.h> |
paul@16777 | 29 |
paul@16777 | 30 extern VALUE mNcurses; /* module Ncurses */ |
paul@16777 | 31 extern VALUE cWINDOW; /* class Ncurses::WINDOW */ |
paul@16777 | 32 -- |
paul@16777 | 33 1.9.1 |
paul@16777 | 34 |