Improved checks for <sys/ktrace.h>.

This commit is contained in:
Dag-Erling Smørgrav 2014-10-30 13:07:16 +00:00 committed by des
parent 37973b8705
commit 14c64ec3a5
2 changed files with 10 additions and 1 deletions

View file

@ -39,7 +39,12 @@ AC_CHECK_FUNCS([be64enc be64dec le64enc le64dec])
AC_CHECK_FUNCS([strlcat strlcmp strlcpy])
# For tracing allocations in unit tests
AC_CHECK_HEADERS([sys/ktrace.h])
AC_CHECK_HEADERS([sys/uio.h sys/ktrace.h], [], [], [[
#include <sys/param.h>
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
]])
AC_CHECK_FUNCS([utrace])
############################################################################

View file

@ -41,9 +41,13 @@
#endif
#ifdef HAVE_UTRACE
#ifdef HAVE_SYS_KTRACE_H
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <sys/ktrace.h>
#endif
#endif
#include <assert.h>
#include <errno.h>