This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Check __x86_64__ in x86-64 sys/reg.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 16 May 2012 06:16:02 -0700
- Subject: PATCH: Check __x86_64__ in x86-64 sys/reg.h
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch checks __x86_64__ instead of __WORDSIZE in x86-64 sys/reg.h.
Tested on Linux/x86-64. OK to install?
Thanks.
H.J.
---
* sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
include <bits/wordsize.h>. Check __x86_64__ instead of
__WORDSIZE.
diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/reg.h b/sysdeps/unix/sysv/linux/x86_64/sys/reg.h
index 33b08cc..aca96cf 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sys/reg.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sys/reg.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -17,10 +17,9 @@
#ifndef _SYS_REG_H
#define _SYS_REG_H 1
-#include <bits/wordsize.h>
-#if __WORDSIZE == 64
+#ifdef __x86_64__
/* Index into an array of 8 byte longs returned from ptrace for
location of the users' stored general purpose registers. */