public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/3.17: 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
@ 2014-11-01  2:11 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2014-11-01  2:11 UTC (permalink / raw
  To: gentoo-commits

vapier      14/11/01 02:11:08

  Added:               
                        00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
  Log:
  fix mips asm/ptrace.h #527642

Revision  Changes    Path
1.1                  src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.17/00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch?rev=1.1&content-type=text/plain

Index: 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch
===================================================================
https://bugs.gentoo.org/527642

From b4f21bcfa89c3a60746b751ec1bfe27d29a868e8 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Fri, 31 Oct 2014 21:57:46 -0400
Subject: [PATCH] MIPS: asm/ptrace.h: include linux/types.h

The header uses __u64 but doesn't include linux/types.h which breaks
userspace apps that try to use asm/ptrace.h.  Like gdb:

In file included from mips-linux-nat.c:37:0:
/usr/include/asm/ptrace.h:32:2: error: unknown type name '__u64'
  __u64 regs[32];

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/mips/include/uapi/asm/ptrace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/include/uapi/asm/ptrace.h b/arch/mips/include/uapi/asm/ptrace.h
index bbcfb8b..91a3d19 100644
--- a/arch/mips/include/uapi/asm/ptrace.h
+++ b/arch/mips/include/uapi/asm/ptrace.h
@@ -9,6 +9,8 @@
 #ifndef _UAPI_ASM_PTRACE_H
 #define _UAPI_ASM_PTRACE_H
 
+#include <linux/types.h>
+
 /* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
 #define FPR_BASE	32
 #define PC		64
-- 
2.1.2






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-01  2:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-01  2:11 [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/3.17: 00_all_0007-MIPS-asm-ptrace.h-include-linux-types.h.patch Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox