Files
MINGW-packages/mingw-w64-python/1060-dont-include-system-ncurses-path.patch
2019-12-23 10:10:26 +03:00

23 lines
592 B
Diff

diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac
--- Python-3.8.0-orig/configure.ac 2019-10-22 10:04:22.223897300 +0300
+++ Python-3.8.0/configure.ac 2019-10-22 10:04:26.170704200 +0300
@@ -5293,9 +5293,15 @@
# 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)