fix python3 build on SLED11

Apparently all recent systems use ncursesw, for which there is
-I/usr/include/ncursesw, but SLED11 uses ncurses lib, and there's no -I for that.

Change-Id: I61ec795aae45e1074075351eca62299784d08b09
This commit is contained in:
Luboš Luňák
2012-12-04 01:03:39 +01:00
parent 324d189c90
commit f4ae375c00
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/python3/setup.py 2012-12-04 00:40:57.000000000 +0100
+++ b/python3/setup.py 2012-12-04 00:53:49.000000000 +0100
@@ -1289,6 +1279,8 @@
# Building with the system-suppied combined libncurses/libpanel
curses_defines.append(('HAVE_NCURSESW', '1'))
curses_defines.append(('_XOPEN_SOURCE_EXTENDED', '1'))
+ elif curses_library == 'ncurses':
+ curses_includes.append('/usr/include/ncurses')
if curses_library.startswith('ncurses'):
curses_libs = [curses_library]