1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

24252: dont define _XOPEN_SOURCE_EXTENDED for curses on OpenBSD

This commit is contained in:
Peter Stephenson 2007-12-14 15:14:04 +00:00
parent a5c9701518
commit 44a9dde5b2
4 changed files with 24 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2007-12-14 Peter Stephenson <pws@csr.com>
* 24252: configure.ac, Src/system.h, Src/Modules/curses.c:
_XOPEN_SOURCE_EXTENDED was causing problems on OpenBSD.
* 24251: Doc/ztexi.yo: fix sitem() macro.
2007-12-13 Clint Adams <clint@zsh.org>

View file

@ -27,7 +27,7 @@
*
*/
#define _XOPEN_SOURCE_EXTENDED 1
#define ZSH_CURSES_SOURCE 1
#include "curses.mdh"
#include "curses.pro"

View file

@ -52,6 +52,10 @@
# undef HAVE_SYS_UTSNAME_H
#endif
#if defined(ZSH_CURSES_SOURCE) && defined(ZSH_CURSES_NEEDS_XOPEN)
#define _XOPEN_SOURCE_EXTENDED 1
#endif
/*
* Solaris by default zeroes all elements of the tm structure in
* strptime(). Unfortunately that gives us no way of telling whether

View file

@ -669,6 +669,22 @@ fi],
termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;;
esac])dnl
AH_TEMPLATE([ZSH_CURSES_NEEDS_XOPEN],
[Define if the curses libraries need _XOPEN_SOURCE_EXTENDED defined])
AC_CACHE_CHECK(if the curses library needs _XOPEN_SOURCE_EXTENDED,
zsh_cv_curses_needs_xopen,
[case "$host_os" in
*openbsd*)
zsh_cv_curses_needs_xopen=no
;;
*)
zsh_cv_curses_needs_xopen=yes
;;
esac])
if test x$zsh_cv_curses_needs_xopen = xyes; then
AC_DEFINE(ZSH_CURSES_NEEDS_XOPEN)
fi
AH_TEMPLATE([HAVE_BOOLCODES],
[Define if you have the termcap boolcodes symbol.])
AH_TEMPLATE([HAVE_NUMCODES],