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

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