]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
PTRACE_GETREGS might not be detected on some distro, due to a missing #include
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 2 Feb 2015 22:40:54 +0000 (22:40 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 2 Feb 2015 22:40:54 +0000 (22:40 +0000)
in the configure test.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14899

configure.ac

index bdf5f2253113ab7c9313318cf05d3a6b84dcb4b5..fe2897bd9b49b7c85b007415fe2ddd346e6fedb6 100644 (file)
@@ -1084,6 +1084,7 @@ AM_CONDITIONAL([HAVE_GNU_STPNCPY], [test x$ac_have_gnu_stpncpy = xyes])
 
 AC_MSG_CHECKING([for PTRACE_GETREGS])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <stdlib.h>
 #include <stddef.h>
 #include <sys/ptrace.h>
 #include <sys/user.h>