]> granicus.if.org Git - strace/commitdiff
syscall.c: ensure that NT_PRSTATUS is defined
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 13 Feb 2015 22:53:00 +0000 (22:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 14 Feb 2015 00:11:18 +0000 (00:11 +0000)
* syscall.c: Do not include <elf.h>.
(NT_PRSTATUS): New macro.

syscall.c

index e2b1626f8a123b57b9be670f4b98c3142082e2e8..ad2ccf39b5223e29da67b19efe74abd9322fce96 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 
 /* for struct iovec */
 #include <sys/uio.h>
-/* for NT_PRSTATUS */
-#ifdef HAVE_ELF_H
-# include <elf.h>
-#endif
 
 #include "ptrace.h"
 
 # include <asm/psr.h>
 #endif
 
+#ifndef NT_PRSTATUS
+# define NT_PRSTATUS 1
+#endif
+
 #ifndef NSIG
 # warning: NSIG is not defined, using 32
 # define NSIG 32