Fix building on OpenBSD due to lack of sys/ucontext.h header.

Patch by brad@comstyle.com. This closes ticket:3917.
master
per 2013-01-30 08:52:21 +01:00
parent 9a0f42905b
commit 9b9383500f
2 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,7 @@ AX_CHECK_STRLCAT
AX_STACK_PROTECT_CC
AX_STACK_PROTECT_CXX
AC_CHECK_HEADERS(alloca.h)
AC_CHECK_HEADERS(alloca.h sys/ucontext.h)
# Check for gettext
AM_GNU_GETTEXT([external])

View File

@ -121,7 +121,9 @@ static LONG WINAPI windowsExceptionHandler(PEXCEPTION_POINTERS pExceptionInfo)
# include <sys/types.h>
# include <sys/stat.h>
# include <sys/wait.h>
#ifdef HAVE_SYS_UCONTEXT_H
# include <sys/ucontext.h>
#endif
# include <sys/utsname.h>
#ifdef WZ_OS_LINUX
# include <sys/prctl.h>