[COMMITTED] Fix some sparc conform test failures in siginfo.h

Message ID 20140430.144026.1471190766496995974.davem@davemloft.net
State Committed
Headers

Commit Message

David Miller April 30, 2014, 6:40 p.m. UTC
  * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
	with XOPEN cpp guards.
---
 ChangeLog                                    | 5 +++++
 sysdeps/unix/sysv/linux/sparc/bits/siginfo.h | 2 ++
 2 files changed, 7 insertions(+)
  

Comments

Joseph Myers April 30, 2014, 8:32 p.m. UTC | #1
On Wed, 30 Apr 2014, David Miller wrote:

> 	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
> 	with XOPEN cpp guards.

But this isn't an X/Open feature.  It should be __USE_GNU, I suppose.
  
David Miller April 30, 2014, 8:37 p.m. UTC | #2
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Wed, 30 Apr 2014 20:32:03 +0000

> On Wed, 30 Apr 2014, David Miller wrote:
> 
>> 	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
>> 	with XOPEN cpp guards.
> 
> But this isn't an X/Open feature.  It should be __USE_GNU, I suppose.

Fair enough, I've committed this correction, thanks a lot.
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 1e6dda8..30b02e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@ 
+2014-04-30  David S. Miller  <davem@davemloft.net>
+
+	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
+	with XOPEN cpp guards.
+
 2014-04-30  Julian Brown  <julian@codesourcery.com>
 
 	[BZ #16888]
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/siginfo.h b/sysdeps/unix/sysv/linux/sparc/bits/siginfo.h
index 6c145ce..fcf83c5 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/siginfo.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/siginfo.h
@@ -278,12 +278,14 @@  enum
 };
 # endif
 
+# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
 /* `si_code' values for SIGEMT signal.  */
 enum
 {
   EMT_TAGOVF = 1		/* Tag overflow.  */
 # define EMT_TAGOVF	EMT_TAGOVF
 };
+# endif
 
 # undef __need_siginfo_t
 #endif	/* !have siginfo_t && (have _SIGNAL_H || need siginfo_t).  */