diff --git a/configure.in b/configure.in index 58c0ff9c..724b1245 100644 --- a/configure.in +++ b/configure.in @@ -37,7 +37,7 @@ dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \ ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \ - sys/procfs.h) + sys/procfs.h sys/ptrace.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff --git a/src/ptrace/_UPT_internal.h b/src/ptrace/_UPT_internal.h index ff11e738..bfc26b04 100644 --- a/src/ptrace/_UPT_internal.h +++ b/src/ptrace/_UPT_internal.h @@ -33,7 +33,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifdef HAVE_SYS_TYPES_H #include #endif +#ifdef HAVE_SYS_PTRACE_H #include +#endif #ifdef HAVE_SYS_PROCFS_H #include #endif