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

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