]> granicus.if.org Git - strace/commitdiff
Include <sys/uio.h> and <elf.h> on all architectures
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Mar 2013 00:59:27 +0000 (00:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Mar 2013 11:59:37 +0000 (11:59 +0000)
* syscall.c: Include <sys/uio.h> and <elf.h> on all architectures.

syscall.c

index 42aad40add514acb8d0f63e8cb5b21873562f77c..e3fcc01605b0b60dc59038de52182521c2aa41ed 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 # include <asm/rse.h>
 #endif
 
-#if defined(X86_64) || defined(X32)
-# include <sys/uio.h>
+/* for struct iovec */
+#include <sys/uio.h>
+/* for NT_PRSTATUS */
+#ifdef HAVE_ELF_H
 # include <elf.h>
 #endif
 
 #if defined(AARCH64)
 # include <asm/ptrace.h>
-# include <sys/uio.h>
-# include <elf.h>
-#endif
-
-#if defined(OR1K)
-# include <sys/uio.h>
-# include <elf.h>
-#endif
-
-#if defined(METAG)
-# include <sys/uio.h>
-# include <elf.h>
 #endif
 
 #ifndef ERESTARTSYS