pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt/patches Fix pr/55840: build under netbsd wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f192b5fdbe8b
branches:  trunk
changeset: 443012:f192b5fdbe8b
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Sat Dec 05 13:02:03 2020 +0000

description:
Fix pr/55840: build under netbsd with slang

When using slang, do not use ncurses synbols

diffstat:

 mail/mutt/patches/patch-color.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 572ae52f35f2 -r f192b5fdbe8b mail/mutt/patches/patch-color.c
--- a/mail/mutt/patches/patch-color.c   Sat Dec 05 12:35:25 2020 +0000
+++ b/mail/mutt/patches/patch-color.c   Sat Dec 05 13:02:03 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-color.c,v 1.1 2020/11/08 17:42:45 tron Exp $
+$NetBSD: patch-color.c,v 1.2 2020/12/05 13:02:03 tonio Exp $
 
 Fix build under NetBSD
 
@@ -9,7 +9,7 @@
  #define COLOR_QUOTE_INIT      8
  
 -#ifdef NCURSES_VERSION
-+#if defined(NCURSES_VERSION) || defined(__NetBSD__)
++#if defined(NCURSES_VERSION) || (defined(__NetBSD__) && !defined(USE_SLANG_CURSES))
  #define ATTR_MASK (A_ATTRIBUTES ^ A_COLOR)
  #elif defined (USE_SLANG_CURSES)
  #define ATTR_MASK (~(unsigned int)A_NORMAL ^ (A_CHARTEXT | A_UNUSED | A_COLOR))



Home | Main Index | Thread Index | Old Index