]>
Commit | Line | Data |
---|---|---|
07ec780d ER |
1 | From d3e59724601b2aabb231f2e12e16ebf00ba79ab1 Mon Sep 17 00:00:00 2001 |
2 | From: Caleb Marble <cm@marblenix.com> | |
3 | Date: Sun, 2 Mar 2014 13:53:05 -0600 | |
4 | Subject: [PATCH] modified: ext/ncurses/ncurses_wrap.h | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | Fixes the following compiler error: | |
10 | ||
11 | ext/ncurses/ncurses_wrap.c: In function ‘rbncurshelper_nonblocking_wgetch’: | |
12 | ext/ncurses/ncurses_wrap.c:807:12: error: variable ‘tz’ has initializer but incomplete type | |
13 | struct timezone tz = {0,0}; | |
14 | ||
15 | Also closes #6 | |
16 | --- | |
17 | ncurses_wrap.h | 1 + | |
18 | 1 file changed, 1 insertion(+) | |
19 | ||
20 | diff --git a/ncurses_wrap.h b/ncurses_wrap.h | |
21 | index 85da4f8..92583c0 100644 | |
22 | --- a/ncurses_wrap.h | |
23 | +++ b/ncurses_wrap.h | |
24 | @@ -84,6 +84,7 @@ int close(int); | |
25 | #endif | |
26 | ||
27 | #include <ruby.h> | |
28 | +#include <sys/time.h> | |
29 | ||
30 | extern VALUE mNcurses; /* module Ncurses */ | |
31 | extern VALUE cWINDOW; /* class Ncurses::WINDOW */ | |
32 | -- | |
33 | 1.9.1 | |
34 |