summarylogtreecommitdiffstats
path: root/0068-dont-include-system-ncurses-path.patch
blob: 59bf520622b90100155b9d8499e62116b61f2861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 430aee7255b2ebf1947c8670db95f017e41aecc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
 <alexey.pawlow@gmail.com>
Date: Thu, 17 Jun 2021 18:52:09 +0530
Subject: [PATCH 068/N] dont include system ncurses path

---
 configure.ac | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 28b69be..25aecf9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5479,9 +5479,15 @@ fi
 
 # first curses header check
 ac_save_cppflags="$CPPFLAGS"
-if test "$cross_compiling" = no; then
-  CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
-fi
+case $host_os in
+    mingw*)
+    ;;
+    *)
+      if test "$cross_compiling" = no; then
+        CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
+      fi
+    ;;
+esac
 
 AC_CHECK_HEADERS(curses.h ncurses.h)
 
-- 
2.32.0