components/coreutils/patches/libstdbuf.c.patch
changeset 2050 7c6a1559c620
parent 2049 e2939e765e30
child 2051 1bdb33eb0332
--- a/components/coreutils/patches/libstdbuf.c.patch	Thu Aug 14 23:47:06 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-Changes needed to properly create the libstdbuf.so shared library on Solaris.
-
-This change has been passed upstream.
-
---- coreutils-8.16/src/libstdbuf.c.orig	2014-05-08 21:41:23.436563716 -0700
-+++ coreutils-8.16/src/libstdbuf.c	2014-05-12 17:44:17.575294603 -0700
-@@ -127,7 +127,14 @@
-     }
- }
- 
--__attribute__ ((constructor)) static void
-+#if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) \
-+     || 0x590 <= __SUNPRO_C)
-+/* Explicitly define to avoid otherwise elided __attribute on SUNPRO_C  */
-+# define ATTRIBUTE_CONSTRUCTOR __attribute ((constructor))
-+#else
-+# error "__attribute ((constructor)) support is required"
-+#endif
-+static void ATTRIBUTE_CONSTRUCTOR
- stdbuf (void)
- {
-   char *e_mode = getenv ("_STDBUF_E");