about summary refs log tree commit diff
path: root/signal/signal.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-12 17:39:47 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-12 17:39:47 +0000
commit9527ae8291dbc6097f4f93c4ccce69b577f8a261 (patch)
tree07b852df35272170ee7e8502db3556420f70d6ea /signal/signal.h
parenta0f8b1152040d2652cdeb741ac586c95221dc5f0 (diff)
downloadglibc-9527ae8291dbc6097f4f93c4ccce69b577f8a261.tar.gz
glibc-9527ae8291dbc6097f4f93c4ccce69b577f8a261.tar.xz
glibc-9527ae8291dbc6097f4f93c4ccce69b577f8a261.zip
Fix XPG4 bsd_signal namespace (bug 21552).
bsd_signal was added in XPG4.2, so should be declared for
__USE_XOPEN_EXTENDED, instead of the present __USE_XOPEN condition.
This patch fixes the condition accordingly.

Tested for x86_64.

	[BZ #21552]
	* signal/signal.h (bsd_signal): Declare if [__USE_XOPEN_EXTENDED],
	not [__USE_XOPEN].
	* conform/Makefile (test-xfail-XPG4/signal.h/conform): Remove.
Diffstat (limited to 'signal/signal.h')
-rw-r--r--signal/signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal/signal.h b/signal/signal.h
index 5ff94e0d25..23cd8efb14 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -94,7 +94,7 @@ extern __sighandler_t __REDIRECT_NTH (signal,
 # endif
 #endif
 
-#if defined __USE_XOPEN && !defined __USE_XOPEN2K8
+#if defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8
 /* The X/Open definition of `signal' conflicts with the BSD version.
    So they defined another function `bsd_signal'.  */
 extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)