From: H.J. Lu Date: Wed, 16 May 2012 17:20:45 +0000 (-0700) Subject: Check __x86_64__ in x86-64 sys/reg.h X-Git-Tag: glibc-2.16-tps~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e90c8ad55a1196846e2b06e3f6a6d3c805542e0;p=thirdparty%2Fglibc.git Check __x86_64__ in x86-64 sys/reg.h --- diff --git a/ChangeLog b/ChangeLog index 4ecd85a88f3..52507ca721d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-05-16 H.J. Lu + + * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't + include . Check __x86_64__ instead of + __WORDSIZE. + 2012-05-16 H.J. Lu * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/reg.h b/sysdeps/unix/sysv/linux/x86_64/sys/reg.h index 33b08cc9ba2..aca96cf13fc 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 -#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. */