* Fix HP-UX crashes by defining ARRAY_BROKEN on this platform.

git-svn-id: svn://svn.zoy.org/elk/trunk@140 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-10 22:40:44 +00:00
parent c2282be5c7
commit 284ec7540b
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ AC_SUBST(STDINT_HEADER)
# type of system.
AC_DEFINE_UNQUOTED(SYSTEMTYPE, ["${target_os}"], [Our operating system])
case "${target_os}" in
*hpux*)
AC_DEFINE(ARRAY_BROKEN, 1, [Define if a-=1000; a[1000] doesn't work])
;;
esac
# Does the system support the vprintf library function? If not,
# availability of the (non-portable) _doprnt function is assumed.
AC_CHECK_FUNCS(vprintf)