mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
* configure.in: Change test for return type of ptrace to default
to `long' instead of `int'. * configure: Regenerate.
This commit is contained in:
parent
651f22f717
commit
5885ab493f
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
6
gdb/configure
vendored
6
gdb/configure
vendored
@ -7328,17 +7328,17 @@ else
|
||||
#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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user