Blame SOURCES/glibc-fedora-streams-rh436349.patch

d8307d
Short description: Do not define _XOPEN_STREAMS.
d8307d
Author(s): Fedora glibc team <glibc@lists.fedoraproject.org>
d8307d
Origin: PATCH
d8307d
Bug-Fedora: #436349
d8307d
Upstream status: not-submitted
d8307d
d8307d
This patch should go upstream. Not defining _XOPEN_STREAMS is the
d8307d
same as setting it to -1 for POSIX conformance. The headers setting
d8307d
needs to be reviewed indepedently.
d8307d
d8307d
This is part of commit glibc-2.3.3-1564-gd0b6ac6
d8307d
d8307d
* Fri Mar 14 2008 Jakub Jelinek <jakub@redhat.com> 2.7.90-11
d8307d
- remove <stropts.h>, define _XOPEN_STREAMS -1 (#436349)
d8307d
d8307d
diff -Nrup a/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h b/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
d8307d
--- a/sysdeps/unix/sysv/linux/bits/posix_opt.h	2012-06-05 07:42:49.000000000 -0600
d8307d
+++ b/sysdeps/unix/sysv/linux/bits/posix_opt.h	2012-06-07 12:15:21.817318674 -0600
d8307d
@@ -188,4 +188,7 @@
d8307d
 /* Typed memory objects are not available.  */
d8307d
 #define _POSIX_TYPED_MEMORY_OBJECTS	-1
d8307d
 
d8307d
+/* Streams are not available.  */
d8307d
+#define _XOPEN_STREAMS	-1
d8307d
+
d8307d
 #endif /* bits/posix_opt.h */
d8307d
diff -Nrup a/streams/Makefile b/streams/Makefile
d8307d
--- a/streams/Makefile	2012-06-05 07:42:49.000000000 -0600
d8307d
+++ b/streams/Makefile	2012-06-07 12:15:21.824318649 -0600
d8307d
@@ -20,7 +20,7 @@
d8307d
 
d8307d
 include ../Makeconfig
d8307d
 
d8307d
-headers		= stropts.h sys/stropts.h bits/stropts.h bits/xtitypes.h
d8307d
+#headers		= stropts.h sys/stropts.h bits/stropts.h bits/xtitypes.h
d8307d
 routines	= isastream getmsg getpmsg putmsg putpmsg fattach fdetach
d8307d
 
d8307d
 include ../Rules