mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-14 17:55:40 +00:00
Improved checks for <sys/ktrace.h>.
This commit is contained in:
parent
37973b8705
commit
14c64ec3a5
2 changed files with 10 additions and 1 deletions
|
@ -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])
|
||||
|
||||
############################################################################
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue