diff --git a/LDBL_MAX-gcc4.4.patch b/LDBL_MAX-gcc4.4.patch index d4761dc..8507ede 100644 --- a/LDBL_MAX-gcc4.4.patch +++ b/LDBL_MAX-gcc4.4.patch @@ -6,9 +6,35 @@ | https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00011.html | --- + gl/lib/float.c | 2 +- gl/lib/float.in.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + 2 files changed, 2 insertions(+), 2 deletions(-) +--- gl/lib/float.c ++++ gl/lib/float.c 2016-03-14 14:29:38.001448470 +0000 +@@ -13,21 +13,21 @@ + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + #include + + /* Specification. */ + #include + +-#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ ++#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && (defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ == 4)) + const union gl_long_double_union gl_LDBL_MAX = + { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } }; + #elif defined __i386__ + const union gl_long_double_union gl_LDBL_MAX = + { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } }; + #else + /* This declaration is solely to ensure that after preprocessing + this file is never empty. */ + typedef int dummy; + #endif --- gl/lib/float.in.h +++ gl/lib/float.in.h 2016-03-14 14:15:45.616871084 +0000 @@ -112,21 +112,21 @@ extern const union gl_long_double_union diff --git a/findutils.spec b/findutils.spec index 60588d5..aa2ed07 100644 --- a/findutils.spec +++ b/findutils.spec @@ -64,7 +64,7 @@ useful for finding things on your system. %prep %setup -q %patch0 -%patch1 +#%patch1 %build %if 0%{?qemu_user_space_build}