criu/always-define-ptrace_peeksiginfo_args.diff
Takashi Iwai f39a2bc1d2 Accepting request 214574 from home:tiwai:branches:devel:tools
- Update to version 1.1-rc2: Bugs fixed,
  * Crash in criu check
  * RPC check always fail on 3.11 kernel
  * Failed fork() didn't abort restore
  * Dump fail not reported via RPC
  * RPC client disconnect wasn't handled
  * Page server could connect to self for writing images
  * Hang on pre-dumping task livig in net-namespace
  * VDSO page mis-handle on pre-dump
  * FPU state loss on pre-dump
  * Memory tracking turns ON w/o request
  * Various fixes (and improvements) in build system 
- Fix missing struct ptrace_peeksiginfo_args on FACTORY:
  always-define-ptrace_peeksiginfo_args.diff

OBS-URL: https://build.opensuse.org/request/show/214574
OBS-URL: https://build.opensuse.org/package/show/devel:tools/criu?expand=0&rev=6
2014-01-21 11:52:38 +00:00

26 lines
650 B
Diff

struct ptrace_peeksiginfo_args is defined in linux/ptrace.h but not in sys/ptrace.h.
---
include/ptrace.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/include/ptrace.h
+++ b/include/ptrace.h
@@ -19,6 +19,8 @@
#ifndef PTRACE_PEEKSIGINFO
#define PTRACE_PEEKSIGINFO 0x4209
+#endif
+
struct ptrace_peeksiginfo_args {
__u64 off; /* from which siginfo to start */
__u32 flags;
@@ -27,7 +29,6 @@ struct ptrace_peeksiginfo_args {
/* Read signals from a shared (process wide) queue */
#define PTRACE_PEEKSIGINFO_SHARED (1 << 0)
-#endif
#ifndef PTRACE_GETREGSET
# define PTRACE_GETREGSET 0x4204