From 6953233a35e9196e7ed40f73c2e174cb53ac78f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 13 Oct 2001 09:12:41 +0000 Subject: Check for term.h and include it on non-ncurses system to get a declaration for tigetstr. --- Include/py_curses.h | 4 ++++ configure | 4 ++-- configure.in | 2 +- pyconfig.h.in | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Include/py_curses.h b/Include/py_curses.h index 62afb5e..b5f7e54 100644 --- a/Include/py_curses.h +++ b/Include/py_curses.h @@ -6,6 +6,10 @@ #include #else #include +#ifdef HAVE_TERM_H +/* for tigetstr, which is not declared in SysV curses */ +#include +#endif #endif #ifdef __cplusplus diff --git a/configure b/configure index 639c73f..e2c0735 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.265 +# From configure.in Revision: 1.266 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 @@ -1903,7 +1903,7 @@ ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ -sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ +sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` diff --git a/configure.in b/configure.in index f7f7ef7..8d77e7b 100644 --- a/configure.in +++ b/configure.in @@ -448,7 +448,7 @@ ncurses.h poll.h pthread.h \ signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ -sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ +sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h) AC_HEADER_DIRENT diff --git a/pyconfig.h.in b/pyconfig.h.in index e3ce90c..749666f 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -699,6 +699,9 @@ /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H +/* Define if you have the header file. */ +#undef HAVE_TERM_H + /* Define if you have the header file. */ #undef HAVE_TERMIOS_H -- cgit v0.12