This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define siginfo_t in signal.h for XPG4 (bug 14835)


As noted in bug 14835, signal.h fails to define siginfo_t and
associated constants for XPG4.  This patch fixes this in the obvious
way.

Tested x86_64.  This reduces the number of conform/ test failures for
XPG4 from 118 to 68, leaving the numbers for other standards
unchanged.

2012-11-13  Joseph Myers  <joseph@codesourcery.com>

	[BZ #14835]
	* signal/signal.h [__USE_XOPEN_EXTENDED]: Include
	<bits/siginfo.h>.

diff --git a/signal/signal.h b/signal/signal.h
index a6a0590..36720d4 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -73,7 +73,9 @@ typedef __uid_t uid_t;
 /* We need `struct timespec' later on.  */
 # define __need_timespec
 # include <time.h>
+#endif
 
+#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED
 /* Get the `siginfo_t' type plus the needed symbols.  */
 # include <bits/siginfo.h>
 #endif

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]