Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f191a9e

Browse files
author
Xavier de Gaye
committed
Issue #28190: Merge 3.6.
2 parents f852fff + e13c320 commit f191a9e

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15706,7 +15706,9 @@ fi
1570615706

1570715707
# first curses header check
1570815708
ac_save_cppflags="$CPPFLAGS"
15709-
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15709+
if test "$cross_compiling" = no; then
15710+
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15711+
fi
1571015712

1571115713
for ac_header in curses.h ncurses.h
1571215714
do :

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4889,7 +4889,9 @@ fi
48894889

48904890
# first curses header check
48914891
ac_save_cppflags="$CPPFLAGS"
4892-
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4892+
if test "$cross_compiling" = no; then
4893+
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4894+
fi
48934895

48944896
AC_CHECK_HEADERS(curses.h ncurses.h)
48954897

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,8 @@ class db_found(Exception): pass
13501350
panel_library = 'panel'
13511351
if curses_library == 'ncursesw':
13521352
curses_defines.append(('HAVE_NCURSESW', '1'))
1353-
curses_includes.append('/usr/include/ncursesw')
1353+
if not cross_compiling:
1354+
curses_includes.append('/usr/include/ncursesw')
13541355
# Bug 1464056: If _curses.so links with ncursesw,
13551356
# _curses_panel.so must link with panelw.
13561357
panel_library = 'panelw'

0 commit comments

Comments
 (0)