summaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-22 14:18:02 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-22 14:18:02 +0000
commitdcd4da9ee1ebc5a34cfe14ba47c1cd0f1cd3ba5a (patch)
treee1a8b8dcab733b6016a18fc896507201b2a866eb /gdb/configure.in
parent19ef5fb28a79b9842ad9ba4b5017a4977427f7c5 (diff)
downloadgdb-dcd4da9ee1ebc5a34cfe14ba47c1cd0f1cd3ba5a.tar.gz
* configure.in: Change test for return type of ptrace to default
to `long' instead of `int'. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index fa074501bc4..da0ad487189 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -506,9 +506,9 @@ gcc_AC_CHECK_DECLS(ptrace, , [
# 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.