+2004-08-22 Mark Kettenis <kettenis@gnu.org>
+
+ * configure.in: Change test for return type of ptrace to default
+ to `long' instead of `int'.
+ * configure: Regenerate.
+
2004-08-21 Mark Kettenis <kettenis@gnu.org>
* config/alpha/alpha-linux.mh (LOADLIBES): New variable.
#include "confdefs.h"
$gdb_ptrace_headers
int main() {
-extern long ptrace ();
+extern int ptrace ();
; return 0; }
EOF
if { (eval echo configure:7335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- gdb_cv_func_ptrace_ret='long'
+ gdb_cv_func_ptrace_ret='int'
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- gdb_cv_func_ptrace_ret='int'
+ gdb_cv_func_ptrace_ret='long'
fi
rm -f conftest*
fi
# Check return type.
AC_CACHE_CHECK([return type of ptrace], gdb_cv_func_ptrace_ret,
AC_TRY_COMPILE($gdb_ptrace_headers,
- [extern long ptrace ();],
- gdb_cv_func_ptrace_ret='long',
- gdb_cv_func_ptrace_ret='int'))
+ [extern int ptrace ();],
+ gdb_cv_func_ptrace_ret='int',
+ gdb_cv_func_ptrace_ret='long'))
AC_DEFINE_UNQUOTED(PTRACE_TYPE_RET, $gdb_cv_func_ptrace_ret,
[Define as the return type of ptrace.])
# Check argument types.