Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include fix 32 bit build.
details: https://anonhg.NetBSD.org/src/rev/0fce35be9678
branches: trunk
changeset: 340608:0fce35be9678
user: christos <christos%NetBSD.org@localhost>
date: Thu Sep 17 14:39:35 2015 +0000
description:
fix 32 bit build.
diffstat:
sys/arch/amd64/include/ptrace.h | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r a1408be43fab -r 0fce35be9678 sys/arch/amd64/include/ptrace.h
--- a/sys/arch/amd64/include/ptrace.h Thu Sep 17 14:25:43 2015 +0000
+++ b/sys/arch/amd64/include/ptrace.h Thu Sep 17 14:39:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.4 2015/09/15 15:49:02 christos Exp $ */
+/* $NetBSD: ptrace.h,v 1.5 2015/09/17 14:39:35 christos Exp $ */
/*
* Copyright (c) 1993 Christopher G. Demetriou
@@ -29,7 +29,10 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _AMD64_PTRACE_H_
+#define _AMD64_PTRACE_H_
+#ifdef __x86_64__
/*
* i386-dependent ptrace definitions
*/
@@ -63,5 +66,13 @@
#define process_reg32 struct reg32
#define process_fpreg32 struct fpreg32
-#endif
-#endif
+#endif /* COMPAT_NETBSD32 */
+#endif /* _KERNEL_OPT */
+
+#else /* !__x86_64__ */
+
+#include <i386/ptrace.h>
+
+#endif /* __x86_64__ */
+
+#endif /* _AMD64_PTRACE_H_ */
Home |
Main Index |
Thread Index |
Old Index