Module Name: src
Committed By: christos
Date: Thu Sep 17 14:39:35 UTC 2015
Modified Files:
src/sys/arch/amd64/include: ptrace.h
Log Message:
fix 32 bit build.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/include/ptrace.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/include/ptrace.h
diff -u src/sys/arch/amd64/include/ptrace.h:1.4 src/sys/arch/amd64/include/ptrace.h:1.5
--- src/sys/arch/amd64/include/ptrace.h:1.4 Tue Sep 15 11:49:02 2015
+++ src/sys/arch/amd64/include/ptrace.h Thu Sep 17 10:39:35 2015
@@ -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_ */