Files
MINGW-packages/mingw-w64-python3/0130-CROSS-avoid-ncursesw-include-path-hack.patch
T
2013-12-26 10:51:41 +04:00

24 lines
790 B
Diff

diff -Naur --strip-trailing-cr a/configure.ac b/configure.ac
--- a/configure.ac 2013-12-26 09:39:29.293600000 +0400
+++ b/configure.ac 2013-12-26 09:39:42.959200000 +0400
@@ -1645,7 +1645,9 @@
fi
AC_HEADER_STDC
ac_save_cppflags="$CPPFLAGS"
+if test yes != "$cross_compiling"; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
+fi
AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
fcntl.h grp.h \
ieeefp.h io.h langinfo.h libintl.h ncurses.h process.h \
@@ -4574,7 +4576,9 @@
fi
ac_save_cppflags="$CPPFLAGS"
+if test yes != "$cross_compiling"; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
+fi
# On HP/UX 11.0, mvwdelch is a block with a return statement
AC_MSG_CHECKING(whether mvwdelch is an expression)
AC_CACHE_VAL(ac_cv_mvwdelch_is_expression,