summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-12 23:34:33 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-12 23:34:33 +0000
commit252470b60ff30bcb3b97bd8af81ced2ad8196342 (patch)
tree0a2c5deeecc09f0ce4eb4bc66e0f2e43c6ebfe23 /sysdeps/unix
parent08920a506b38e8b8f83533c8db2d6a5329475601 (diff)
downloadglibc-252470b60ff30bcb3b97bd8af81ced2ad8196342.tar.gz
glibc-252470b60ff30bcb3b97bd8af81ced2ad8196342.tar.xz
glibc-252470b60ff30bcb3b97bd8af81ced2ad8196342.zip
Update.
	* sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Don't define
	register names unconditionally, only if __USE_GNU.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/i386/sys/ucontext.h40
1 files changed, 21 insertions, 19 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sys/ucontext.h b/sysdeps/unix/sysv/linux/i386/sys/ucontext.h
index e62b3d0792..44a5b12cd4 100644
--- a/sysdeps/unix/sysv/linux/i386/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/i386/sys/ucontext.h
@@ -36,48 +36,50 @@ typedef int greg_t;
 /* Container for all general registers.  */
 typedef greg_t gregset_t[NGREG];
 
+#ifdef __USE_GNU
 /* Number of each register is the `gregset_t' array.  */
 enum
 {
   GS = 0,
-#define GS	GS
+# define GS	GS
   FS,
-#define FS	FS
+# define FS	FS
   ES,
-#define ES	ES
+# define ES	ES
   DS,
-#define DS	DS
+# define DS	DS
   EDI,
-#define EDI	EDI
+# define EDI	EDI
   ESI,
-#define ESI	ESI
+# define ESI	ESI
   EBP,
-#define EBP	EBP
+# define EBP	EBP
   ESP,
-#define ESP	ESP
+# define ESP	ESP
   EBX,
-#define EBX	EBX
+# define EBX	EBX
   EDX,
-#define EDX	EDX
+# define EDX	EDX
   ECX,
-#define ECX	ECX
+# define ECX	ECX
   EAX,
-#define EAX	EAX
+# define EAX	EAX
   TRAPNO,
-#define TRAPNO	TRAPNO
+# define TRAPNO	TRAPNO
   ERR,
-#define ERR	ERR
+# define ERR	ERR
   EIP,
-#define EIP	EIP
+# define EIP	EIP
   CS,
-#define CS	CS
+# define CS	CS
   EFL,
-#define EFL	EFL
+# define EFL	EFL
   UESP,
-#define UESP	UESP
+# define UESP	UESP
   SS
-#define SS	SS
+# define SS	SS
 };
+#endif
 
 /* Structure to describe FPU registers.  */
 typedef struct _fpstate *fpregset_t;