badge-buildroot/package/rogue/0001-fix-build-from-archlinux.patch

17 lines
402 B
Diff
Raw Normal View History

2019-08-02 22:54:59 +00:00
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));