1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00

19428: Fix test for #include'ing STREAMS headers

This commit is contained in:
Peter Stephenson 2004-02-17 11:36:17 +00:00
parent ce41b8785b
commit 53c9db2406
2 changed files with 14 additions and 2 deletions

@ -1,5 +1,8 @@
2004-02-17 Peter Stephenson <pws@csr.com>
* 19428: configure.ac: fix test for #include'ing STREAMS
headers.
* 19427: Src/jobs.c: last job in table wasn't reported with `jobs'.
2004-02-16 Oliver Kiddle <opk@zsh.org>

@ -562,8 +562,17 @@ if test $zsh_cv_header_termios_h_tiocgwinsz = no; then
fi
AH_TEMPLATE([WINSIZE_IN_PTEM],
[Define if your system defines `struct winsize' in sys/ptem.h.])
AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM))
[Define if your should include sys/stream.h and sys/ptem.h.])
AC_CACHE_CHECK(for streams headers including struct winsize,
ac_cv_winsize_in_ptem,
[AC_TRY_COMPILE([#include <sys/stream.h>
#include <sys/ptem.h>],
[struct winsize wsz],
ac_cv_winsize_in_ptem=yes,
ac_cv_winsize_in_ptem=no)])
if test $ac_cv_winsize_in_ptem = yes; then
AC_DEFINE(WINSIZE_IN_PTEM)
fi
dnl -------------------
dnl CHECK FOR LIBRARIES