badge-buildroot/package/rogue/0001-fix-build-from-archlinux.patch
George Hilliard 562b96c4ac Add games
2019-08-17 09:20:54 -05:00

16 lines
402 B
Diff

diff --git a/mdport.c b/mdport.c
index 72fdbb7..5ff523e 100644
--- a/mdport.c
+++ b/mdport.c
@@ -259,9 +259,10 @@ md_hasclreol()
{
#if defined(clr_eol)
#ifdef NCURSES_VERSION
+TERMTYPE *tp = (TERMTYPE *) (cur_term);
if (cur_term == NULL)
return(0);
- if (cur_term->type.Strings == NULL)
+ if (tp->Strings == NULL)
return(0);
#endif
return((clr_eol != NULL) && (*clr_eol != 0));