equal
deleted
inserted
replaced
1 Changes needed to properly create the libstdbuf.so shared library on Solaris. |
|
2 |
|
3 This change has been passed upstream. |
|
4 |
|
5 --- coreutils-8.16/src/libstdbuf.c.orig 2014-05-08 21:41:23.436563716 -0700 |
|
6 +++ coreutils-8.16/src/libstdbuf.c 2014-05-12 17:44:17.575294603 -0700 |
|
7 @@ -127,7 +127,14 @@ |
|
8 } |
|
9 } |
|
10 |
|
11 -__attribute__ ((constructor)) static void |
|
12 +#if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) \ |
|
13 + || 0x590 <= __SUNPRO_C) |
|
14 +/* Explicitly define to avoid otherwise elided __attribute on SUNPRO_C */ |
|
15 +# define ATTRIBUTE_CONSTRUCTOR __attribute ((constructor)) |
|
16 +#else |
|
17 +# error "__attribute ((constructor)) support is required" |
|
18 +#endif |
|
19 +static void ATTRIBUTE_CONSTRUCTOR |
|
20 stdbuf (void) |
|
21 { |
|
22 char *e_mode = getenv ("_STDBUF_E"); |
|