mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
24016: compilation with curses and not ncurses
This commit is contained in:
parent
f9f16d9364
commit
7988fa65fe
3 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-10-24 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 24016: configure.ac, Src/Modules/curses.c: compilation with
|
||||
curses and not ncurses.
|
||||
|
||||
2007-10-23 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 24012: Src/Modules/curses.c: rename "endwin", "c", and "s" to
|
||||
|
|
|
@ -29,7 +29,17 @@
|
|||
|
||||
#define _XOPEN_SOURCE_EXTENDED 1
|
||||
|
||||
#include <ncurses.h>
|
||||
#include "curses.mdh"
|
||||
#include "curses.pro"
|
||||
|
||||
#ifdef HAVE_NCURSES_H
|
||||
# include <ncurses.h>
|
||||
#else
|
||||
# ifdef HAVE_CURSES_H
|
||||
# include <curses.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MULTIBYTE_SUPPORT
|
||||
# undef HAVE_SETCCHAR
|
||||
# undef HAVE_WADDWSTR
|
||||
|
@ -41,9 +51,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "curses.mdh"
|
||||
#include "curses.pro"
|
||||
|
||||
typedef struct zc_win {
|
||||
WINDOW *win;
|
||||
char *name;
|
||||
|
|
|
@ -557,7 +557,7 @@ AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
|
|||
unistd.h sys/capability.h \
|
||||
utmp.h utmpx.h sys/types.h pwd.h grp.h poll.h sys/mman.h \
|
||||
netinet/in_systm.h pcre.h langinfo.h wchar.h stddef.h \
|
||||
sys/stropts.h iconv.h)
|
||||
sys/stropts.h iconv.h ncurses.h)
|
||||
if test x$dynamic = xyes; then
|
||||
AC_CHECK_HEADERS(dlfcn.h)
|
||||
AC_CHECK_HEADERS(dl.h)
|
||||
|
|
Loading…
Reference in a new issue