mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-09-29 18:09:29 +02:00
Check for <sys/ptrace.h> before including it
On ia64-hpux version 11.31, <sys/ptrace.h> has been removed. This patch adds a configure check for this header file, and only includes <sys/ptrace.h> if it exists.
This commit is contained in:
parent
d2525ec936
commit
e003e44a37
2 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,7 @@ dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
|
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 \
|
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.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
|
|
|
@ -33,7 +33,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_SYS_PTRACE_H
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_SYS_PROCFS_H
|
#ifdef HAVE_SYS_PROCFS_H
|
||||||
#include <sys/procfs.h>
|
#include <sys/procfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue