Patch by Kirill A. Shutemov:

Fix some warnings on ARM build.
* defs.h: include <sys/ptrace.h> on arm too.
* syscall.c: EABI arm does not need decode_subcall(), ifdef it out.
This commit is contained in:
Denys Vlasenko 2008-12-30 17:50:46 +00:00
parent 24f0dcea02
commit 8ba1cd7d12
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-12-30 Kirill A. Shutemov <kirill@shutemov.name>
Fix some warnings on ARM build.
* defs.h: include <sys/ptrace.h> on arm too.
* syscall.c: EABI arm does not need decode_subcall(),
ifdef it out.
2008-12-29 Nick Black <dankamongmen@acm.org>
* linux/syscallent.h: Mark sendfile(2) as network syscall.

5
defs.h
View File

@ -113,6 +113,9 @@
# define LINUX_MIPSN64
# define LINUX_MIPS64
# endif
# if defined(ARM)
# define LINUX_ARM
# endif
#endif
#if defined(SVR4) || defined(FREEBSD)
@ -139,7 +142,7 @@
#include <sys/pioctl.h>
#endif /* FREEBSD */
#else /* !USE_PROCFS */
#if (defined(LINUXSPARC) || defined (LINUX_X86_64)) && defined(__GLIBC__)
#if (defined(LINUXSPARC) || defined(LINUX_X86_64) || defined(LINUX_ARM)) && defined(__GLIBC__)
#include <sys/ptrace.h>
#else
/* Work around awkward prototype in ptrace.h. */

View File

@ -582,7 +582,7 @@ static const struct subcall subcalls_table[] = {
};
#endif /* FREEBSD */
#if !(defined(LINUX) && ( defined(ALPHA) || defined(MIPS) ))
#if !(defined(LINUX) && ( defined(ALPHA) || defined(MIPS) || defined(__ARM_EABI__) ))
static void
decode_subcall(tcp, subcall, nsubcalls, style)